From 69303d969463cc6d66d12cdc8d2a461ddd9e2c48 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 935cd2d9..a8bc2d4a 100644 --- a/packages/visualizations/src/components/MapPoi/Map.ts +++ b/packages/visualizations/src/components/MapPoi/Map.ts @@ -165,6 +165,8 @@ export default class MapPOI { } remove() { + this.popupFeatures = []; + this.popup.remove(); this.queue((map) => map.remove()); }