We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3e92b commit 862f024Copy full SHA for 862f024
src/js/Edit/L.PM.Edit.Line.js
@@ -474,7 +474,8 @@ Edit.Line = Edit.extend({
474
indexPath.length > 1 ? get(this._markers, parentPath) : this._markers;
475
476
// define whether marker is part of hole
477
- const isHole = parentPath[parentPath.length - 1] > 0;
+ const isHole =
478
+ parentPath[parentPath.length - 1] > 0 && this._layer instanceof L.Polygon;
479
480
// prevent removal of the layer if the vertex count is below minimum when not a hole
481
if (!this.options.removeLayerBelowMinVertexCount && !isHole) {
0 commit comments