[OSM-dev] Moving Markers...possible ?

Mattias Dalkvist dalkvist at gmail.com
Thu Oct 23 17:40:58 BST 2008


2008/10/23 Dirk Janssens <jajaja at xs4all.nl>:
> Hello,
>
> In the GoogleMaps API, I can change the position of a marker :
> marker.setPoint(p)
> Is there an equivalent in the openlayers API ?
>
> kind regards,
>
> Dirk Janssens.
>
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/dev
>
>
Hi

Just give the marker new coordinates:
marker.lonlat = newLonLat;
or posibly: marker.moveTo(newPixel);
Depending on what position you have in mind.

-- 
Mattias Dalkvist




More information about the dev mailing list