@watergis/maplibre-gl-terradraw 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2925,8 +2925,7 @@ class Ze {
|
|
|
2925
2925
|
}), this.controlContainer;
|
|
2926
2926
|
}
|
|
2927
2927
|
onRemove() {
|
|
2928
|
-
|
|
2929
|
-
!this.controlContainer || !this.controlContainer.parentNode || !this.map || ((t = this.terradraw) == null || t.stop(), this.modeButtons = {}, this.terradraw = void 0, this.map = void 0, this.controlContainer.parentNode.removeChild(this.controlContainer));
|
|
2928
|
+
!this.controlContainer || !this.controlContainer.parentNode || !this.map || (this.deactivate(), this.modeButtons = {}, this.terradraw = void 0, this.map = void 0, this.controlContainer.parentNode.removeChild(this.controlContainer));
|
|
2930
2929
|
}
|
|
2931
2930
|
/**
|
|
2932
2931
|
* Activate Terra Draw to start drawing
|