Open Falke-Design opened 2 years ago
im also experiencing the same behaviour. If you set draggable to false:
marker1.pm.setOptions({draggable: false});
and then go into edit mode, and then drag mode, you can drag the marker around :(
From what ive noticed, the marker pm options.draggable gets reset back to whatever is set at globalOptions
.
Workaround, apply this to the layer:
layer.on('pm:enable',()=>{
layer.pm.setOptions({draggable: false});
});
Because of the
markerEditable
option, other existing markers are going into edit mode and keeping that for the drag mode1105