Skip to content

Commit

Permalink
Properly disable handlers when switching maps
Browse files Browse the repository at this point in the history
  • Loading branch information
cdauth committed May 7, 2021
1 parent db6d3fc commit a9ff318
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/src/lib/components/leaflet-map/leaflet-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ export default class LeafletMap extends Vue {
}

beforeDestroy(): void {
this.mapComponents.bboxHandler.disable();
this.mapComponents.hashHandler.disable();
this.mapComponents.selectionHandler.disable();
this.mapComponents.map.remove();
}

Expand Down

0 comments on commit a9ff318

Please sign in to comment.