We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var marker1 = L.marker( [5, 5], ).addTo(map); marker1.pm.setOptions({draggable: false});
Because of the markerEditable option, other existing markers are going into edit mode and keeping that for the drag mode
markerEditable
#1105
The text was updated successfully, but these errors were encountered:
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.
globalOptions
Sorry, something went wrong.
Workaround, apply this to the layer:
layer.on('pm:enable',()=>{ layer.pm.setOptions({draggable: false}); });
No branches or pull requests
Because of the
markerEditable
option, other existing markers are going into edit mode and keeping that for the drag mode#1105
The text was updated successfully, but these errors were encountered: