Skip to content

Commit

Permalink
remove controlContainer on map.removeControl(drawControl) (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simomson authored Nov 2, 2024
1 parent cc4821d commit c4e42ff
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-zebras-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@watergis/maplibre-gl-terradraw': patch
---

remove controlContrainer on map.removeControl(drawControl)
1 change: 1 addition & 0 deletions src/lib/MaplibreTerradrawControl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class MaplibreTerradrawControl implements IControl {
this.modeButtons = {};
this.terradraw = undefined;
this.map = undefined;
this.controlContainer.parentNode.removeChild(this.controlContainer);
}

/**
Expand Down

0 comments on commit c4e42ff

Please sign in to comment.