On Wed, Apr 25, 2012 at 12:03 PM, alexe100 <[email protected]> wrote:
> using:
>
> projection: "EPSG:4326",
>
> does not work either :-(
You add features manually (calling addFeatures on the vector layer).
Your features' coords should be expressed in EPSG:900913. Example:
var src = new OpenLayers.Projection("EPSG:4326");
var dst = new OpenLayers.Projection("EPSG:900913");
var point = new OpenLayers.Geometry.Point(-111.04, 45.68);
point.transform(src, dst);
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users