[OpenLayers-Users] Problem with lines.
Eric Lemoine
eric.c2c at gmail.com
Tue Jun 24 11:08:59 EDT 2008
On Tue, Jun 24, 2008 at 4:26 PM, David Martinez Morata
<damarmo at gmail.com> wrote:
> Hello list!
>
> Sorry, but I have an other problem.
>
> I put one gml layer in a google map layer, but...
> This layer change localization with zoom level!!!
> any sugestion?
Do you set the sphericalMercator option to true when creating the
google layers? You need that option if you want to have vector
geometries on top of google layers. Also the coordinates of your GML
data must be in EPSG:900913. If not you'll need to reprojected your
data, either at the server side or at the client side. Note that OL
can natively do 4326 to 900913 reprojections (and vice-versa), but if
your data doesn't use 4326 you will need proj4js in addition to
OpenLayers; see the numerous posts on the subject.
Regards,
--
Eric
More information about the Users
mailing list