ngx-leaflet-draw icon indicating copy to clipboard operation
ngx-leaflet-draw copied to clipboard

Cannot Edit or Delete shapes on map when using own toolbar

Open ferily7 opened this issue 2 years ago • 0 comments

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:

edit

delete

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!

ferily7 avatar Dec 21 '21 22:12 ferily7