geoman-io / leaflet-geoman

🍂🗺️ The most powerful leaflet plugin for drawing and editing geometry layers
https://geoman.io
MIT License
2.23k stars 433 forks source link

Edit mode can edit temporary layers from other plugins #1188

Closed TatianaMG13 closed 2 years ago

TatianaMG13 commented 2 years ago

Hi everyone, I found that the tools from the editing part have access to temporary layers from other plugins. Below I attach screen shots of the interaction between the plugin and the leaflet-measure plugin and geoportal-extensions for leaflet leaflet-measure plugin image image geoportal-extensions for leaflet image image It's really not convenient when you try to print something made with multiple plugins and first use other plugins and then add signatures and other marks using the geoman plugin

Falke-Design commented 2 years ago

Thank you for reporting this but what should we do? Implement a filter for every plugin out there? No this has to be done by the user self with adding pmIgnore: true to the options of the layers which should be ignored.

L.polygon([coords], {pmIgnore: true});

or

someLayer.options.pmIgnore = true;