[OpenLayers-Users] openlayer markers located at the wrong place

maven apache apachemaven0 at gmail.com
Thu May 30 21:56:48 PDT 2013


I have create a marker, and I have to update it postition.

So I use the moveTo method:

marker.moveTo(marker.map.getPixelFromLonLat(lonlat));

Live Exmaple: <http://jsfiddle.net/3pPB3/>

Once you move the map, the marker will be located at the wrong place, why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130531/47960973/attachment.html>


More information about the Users mailing list