Skip to content

Commit

Permalink
Re-init snappable Markers to be sure that pm:snapdrag is fired after …
Browse files Browse the repository at this point in the history
…selfIntersection is detected. Fixes #800 (#801) (patch)
  • Loading branch information
Falke-Design authored Mar 22, 2021
1 parent 2b34959 commit 45f88dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/Edit/L.PM.Edit.Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,10 @@ Edit.Line = Edit.extend({
// re-enable markers for the new coords
this._initMarkers();

if (this.options.snappable) {
this._initSnappableMarkers();
}

// check for selfintersection again (mainly to reset the style)
this._handleLayerStyle();

Expand Down

0 comments on commit 45f88dc

Please sign in to comment.