Mon, 12/05/2016 - 07:58
#1
Return ID/unige key of custom draggable Markers
Hi,
I display a route with custom markers like in this example: https://developer.mapquest.com/documentation/leaflet-plugins/routing/#st...
I also allow to edit the route over dragging. To receive the the new dragged latLng, I use the "move" and the "dragend" events.
My Problem:
I need to know WHICH marker was dragged.
What I need:
A way to add custom markers, which I can give an id or a key, which updates the route on dragging (like in the example) and which can return their id/key.
Has anyone some examples or code for me?
Thanks!!!
Hmm, this is not what I suspected. Is there no way to give each marker its own id?
And if not: how do I get the entire route points (all marker positions)?
Thanks!