diff --git a/src/components/map/layer/PlayersLayer.vue b/src/components/map/layer/PlayersLayer.vue index 38347de..35bb171 100644 --- a/src/components/map/layer/PlayersLayer.vue +++ b/src/components/map/layer/PlayersLayer.vue @@ -77,7 +77,7 @@ export default defineComponent({ }, unmounted() { - this.leaflet.removeLayer(this.layerGroup); + this.leaflet.getLayerManager().removeLayer(this.layerGroup); }, render() {