How to avoid pm:edit after pm:cut???? #845
Unanswered
ingkiller
asked this question in
Questions & Help
Replies: 2 comments
-
You can add a flag to the cutted layer:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you very much, just what I needed, I had tried something similar only in layer not in originalLayer, thank you very much. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have recently started using this fantastic tool (leaflet-geoman). I have noticed that after the cut event an edit event is also fired (as the doc refers to). The situation is the following, I have implemented a logic that after editing / moving some layer I make a call to the backend to update the new change (so far everything correctly),but when I cut a layer in the pm: cut event I get layer and originalLayer, send the new layer data, when doing a pm: cut it also triggers a pm: edit. How can you avoid this behavior or know that pm: edit was called by a pm: cut?
Saludos
Beta Was this translation helpful? Give feedback.
All reactions