Hi friends,
is there a projection difference between OpenLayers.Control.DrawFeature and
OpenLayers.Geometry.Point?
I have an event listener:
eventListeners: {
"featuresadded": function(obj) {
save=new Array(obj.features.length);
for(var i=0;i<saveNodes.length;i++){
save[i] = new Object();
g = obj.features[i].geometry.clone();
g.transform(new OpenLayers.Projection("EPSG:900913"),
new
OpenLayers.Projection("EPSG:4326"));
save[i]["x"] = g.x;
but if i test it with firebug console.log(save[i]['x']); i have values for
the Geometry.Point features like 50,60,70 and for the Control.DrawFeature
values like 80454454,44564654564545... why??? The map has got the
'projection': 'EPSG:900913'.
please help me. I have no idea whats wrong.
thanks for any advise,
x_tls_x
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/projection-difference-between-OpenLayers-Control-DrawFeature-and-OpenLayers-Geometry-Point-tp5701815p5701815.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users