vue-leaflet/Vue2Leaflet

Changes the marker position to the given point

Closed this issue · 3 comments

Hi~
I'm going to dynamicly update my marker . How to change the marker position to the given point,like setLatLng(<LatLng> latlng) (Leaflet Marker's API).
Thanks!

Hi @nwpuhmz,
Just update the position that is bind to the marker. The marker will update is position on the map automatically.

You can see an example here.

Hope this helps,

Micka

@KoRiGaN Got it! Thank you very much~

@KoRiGaN Hey! Your example seems to only work for a single marker. Is this possible to do on multiple markers at the same time?