[OpenLayers-Dev] Re: Openlayer with Openstreetmap drawing polygons in the wrong place

dr rykovd at gmail.com
Fri Jan 6 02:03:07 EST 2012


Note that even if you set the projection object on a layer, if you are adding
features to the layer manually (via layer.addFeatures), they must be
transformed before adding to the layer. OpenLayers will only transform the
projection of geometries that are created internally to the library, to
prevent duplicating projection work.

http://docs.openlayers.org/library/spherical_mercator.html

-----
Denis Rykov
NextGIS
http://www.nextgis.org/
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Openlayer-with-Openstreetmap-drawing-polygons-in-the-wrong-place-tp7155521p7157500.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list