ngx-leaflet-draw
ngx-leaflet-draw copied to clipboard
Cannot Edit or Delete shapes on map when using own toolbar
Hi there,
I am using my own toolbar for drawing the shapes on the map, similar to this issue, but when I am having an issue where the map shows that I can edit or delete the shapes:
The map shows that I can edit or delete the polygon but I can't actually drag the vertexes nor delete the polygon. Here is how my code looks like when I am editing and deleting:
new L.EditToolbar.Edit(map, {
featureGroup: this.featureGroup,
selectedPathOptions: {},
poly: {
allowIntersection: false
},
edit: true
} as any);
new L.EditToolbar.Delete(map, {
featureGroup: this.featureGroup
} as any)
Am I doing something wrong? Any help is greatly appreciated!