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
// add the pm options from drawing to the new layer (edit)
layer.pm.setOptions(this.options);
// set the shape (can be a custom shape)
if(layer.pm){
layer.pm._shape=this._shape;
}
this._addDrawnLayerProp(layer);
},
Needs to be:
_finishLayer(layer){
if(layer.pm) {
// add the pm options from drawing to the new layer (edit)
layer.pm.setOptions(this.options);
// set the shape (can be a custom shape)
layer.pm._shape = this._shape;
}
this._addDrawnLayerProp(layer);
},
Also layers with pmIgnore: true should not be editable / moveable / deleteable
While drawing and
L.PM.setOptIn(true)
an error is thrown:layer.pm undefined
leaflet-geoman/src/js/Draw/L.PM.Draw.js
Lines 176 to 184 in 7cdb0ed
Needs to be:
Also layers with
pmIgnore: true
should not be editable / moveable / deleteableleaflet-geoman/src/js/Mixins/Modes/Mode.Removal.js
Lines 5 to 8 in 7cdb0ed
leaflet-geoman/src/js/L.PM.Utils.js
Lines 12 to 33 in 7cdb0ed
The text was updated successfully, but these errors were encountered: