From 24b4c3bf968b6e2fbaa8de54fc3b3ba0c68f8cdb Mon Sep 17 00:00:00 2001 From: Candid Dauth Date: Sun, 21 Apr 2024 04:51:17 +0200 Subject: [PATCH] Fix error when removing attribution control --- frontend/src/lib/components/leaflet-map/attribution.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/lib/components/leaflet-map/attribution.ts b/frontend/src/lib/components/leaflet-map/attribution.ts index e4a238d0..c96b9a85 100644 --- a/frontend/src/lib/components/leaflet-map/attribution.ts +++ b/frontend/src/lib/components/leaflet-map/attribution.ts @@ -32,7 +32,6 @@ export class AttributionControl extends Control { onRemove(map: Map): void { map.off("layeradd", this.update, this); map.off("layerremove", this.update, this); - delete this._map; } update(): void {