-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
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
With opt-in pmIgnored: false is required on map creation to set up map.pm. This is not specified in the docs. #950
Comments
I've opened a pull request that adds a line about it in the docs: #951. However i was surprised to find out that when opt in is enabled newly drawn objects cannot be edited too. Is this by design? How can i enabled opt-in and at the same time allow editing new layers? |
Yes this is the expected behaviour
But you can add in your PR something like "layers will be also ignored if they are newly drawn" |
Fixed with Release 2.11.3 |
leaflet-geoman/src/js/L.PM.js
Lines 60 to 70 in dbf6c6c
When opt in is set to true before a map is created
{ pmIgnored: false }
is required in options. Otherwisemap.pm
is undefined. This is not mentioned in the docs.The text was updated successfully, but these errors were encountered: