From 712b410b8a96b2988ca4e7bb3cb1ed50aff69556 Mon Sep 17 00:00:00 2001 From: Kevin Fabre Date: Thu, 21 Sep 2023 16:10:23 +0200 Subject: [PATCH] fix(POI Maps): remove popup when map is removed --- packages/visualizations/src/components/MapPoi/Map.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/visualizations/src/components/MapPoi/Map.ts b/packages/visualizations/src/components/MapPoi/Map.ts index 13ecbec3..4aa70793 100644 --- a/packages/visualizations/src/components/MapPoi/Map.ts +++ b/packages/visualizations/src/components/MapPoi/Map.ts @@ -183,6 +183,8 @@ export default class MapPOI { } destroy() { + this.popupFeatures = []; + this.popup.remove(); this.queue((map) => map.remove()); this.mapResizeObserver?.disconnect(); }