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 59ea8cf commit 69303d9
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 @@ -165,6 +165,8 @@ export default class MapPOI {
}

remove() {
this.popupFeatures = [];
this.popup.remove();
this.queue((map) => map.remove());
}

Expand Down

0 comments on commit 69303d9

Please sign in to comment.