Properly disable handlers when switching maps

pull/172/head
Candid Dauth 2021-05-07 07:18:03 +02:00
rodzic db6d3fcb76
commit a9ff318aa5
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -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();
}