[OpenLayers-Users] openlayers drag control returns wrong XY coords
Pedro Costa
pedrocostaarma at sapo.pt
Wed Oct 1 08:42:35 PDT 2014
Hi guys,
I'm trying to use a Drag Control in a webgis. My problem begins when i
finish the 'move' of a point. That is, originally the point have XY like
-8.308567019533697 and 41.376871762432685 displaying well in the map.
After the move, the point have XY like 49.01610355274739 and
-293.0306348131995 displaying very far from the rigth place.
My map: var opcoes = {units: 'm', projection:
epsg_3857,restrictedExtent:extent_maximo,maxExtent:
extent_maximo,controls: []};
map = new OpenLayers.Map('map',opcoes);
The layer of the drag control:
var localizador = new
OpenLayers.Layer.Vector("Localizador", { isBaseLayer: false, styleMap:
new OpenLayers.StyleMap({ 'default': est_loc_def, "temporary":
est_loc_temp }), displayInLayerSwitcher: false});
Thanks
More information about the Users
mailing list