Closed mike16889 closed 3 years ago
@mike16889 Which drag
do you mean?
1: The event: pm:drag
2: You have to add a listener to the hint marker (every time you start drawing):
map.pm.Draw.Line._hintMarker.on('move',(e)=>console.log(e))
3: You have to listen on the markerdragstart
event and then add a listener to the marker if it is draged: https://github.com/geoman-io/leaflet-geoman/issues/660#issuecomment-688109856
But I'm already on it, to add the markerdrag
event
Is there a
drag
event? I know there is asnapdrag
event, but that does not fire if the user holds alt (to disable snapping) or am I missing a way of binding the leaflet event? I could bind it to the handle markers but that won't give me the edited layer.