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. _______________________________________________ Dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-dev
