Skip to content

Commit

Permalink
fix(POI Maps): remove popup when map is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinFabre-ods committed Sep 21, 2023
1 parent 3048d83 commit 712b410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/visualizations/src/components/MapPoi/Map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export default class MapPOI {
}

destroy() {
this.popupFeatures = [];
this.popup.remove();
this.queue((map) => map.remove());
this.mapResizeObserver?.disconnect();
}
Expand Down

0 comments on commit 712b410

Please sign in to comment.