[OpenLayers-Users] Problem while adding a vector layer
Eric Lemoine
eric.lemoine at camptocamp.com
Mon Apr 12 05:06:20 EDT 2010
On Thu, Apr 8, 2010 at 8:38 AM, usha madhuri <life.madhuri at yahoo.com> wrote:
>
> I am doing a project using Openlayers API with Google Maps as my base layer.
> I got a problem while adding a vector layer(kml layer) or even just a
> linestring on google maps(base layer on openlayers API). The vector layer is
> not fixed with the map and moving while I am panning the map. I have tried
> different combinations but couldn't end up with a proper solution.
Hi.
You should use sphericalMercator. See:
<http://docs.openlayers.org/library/spherical_mercator.html>
Cheers,
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
More information about the Users
mailing list