diff --git a/src/components/Map.vue b/src/components/Map.vue index 77c6a0c..04f8df6 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -16,15 +16,17 @@ @@ -225,6 +227,7 @@ export default defineComponent({ unmounted() { window.removeEventListener('keydown', this.handleKeydown); + this.leaflet.remove(); }, methods: {