diff --git a/src/leaflet/control/CoordinatesControl.ts b/src/leaflet/control/CoordinatesControl.ts index 88e56e6..b4636bd 100644 --- a/src/leaflet/control/CoordinatesControl.ts +++ b/src/leaflet/control/CoordinatesControl.ts @@ -81,9 +81,9 @@ export class CoordinatesControl extends Control { return this; } - this._map.on('mousemove', this._onMouseMove, this); - this._map.on('mouseout', this._onMouseOut, this); - Control.prototype.remove.call(this); + this._map.off('mousemove', this._onMouseMove, this); + this._map.off('mouseout', this._onMouseOut, this); + super.remove(); return this; }