2008/10/23 Dirk Janssens <[EMAIL PROTECTED]>:
> 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@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

_______________________________________________
dev mailing list
dev@openstreetmap.org
http://lists.openstreetmap.org/listinfo/dev

Reply via email to