You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe I've found a possible issue.
When handling the 'pm:cut' event I've noticed that an additional layer is present. I was expecting one of them to have the _pmTempLayer flag set. Is that the correct behaviour?
In this fiddle https://jsfiddle.net/j9bm6agx/ you can see that undefined gets output twice if you add one polygon and then cut it once.
Expected there to either only be one layer once inside the event handler or one of the two layers to be marked as temp so I can safely ignore it during persisting.
(If I add a timeout delay of 1 second the second layer isn't present in the list of layers.)
Thanks
The text was updated successfully, but these errors were encountered:
I believe I've found a possible issue.
When handling the 'pm:cut' event I've noticed that an additional layer is present. I was expecting one of them to have the _pmTempLayer flag set. Is that the correct behaviour?
In this fiddle https://jsfiddle.net/j9bm6agx/ you can see that undefined gets output twice if you add one polygon and then cut it once.
Expected there to either only be one layer once inside the event handler or one of the two layers to be marked as temp so I can safely ignore it during persisting.
(If I add a timeout delay of 1 second the second layer isn't present in the list of layers.)
Thanks
The text was updated successfully, but these errors were encountered: