From ee8607ed6d34e50060a0a82575444f6b0c87b0cd Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 29 Jul 2021 00:34:18 +0100 Subject: [PATCH] Fix player layer duplicating in some situations --- src/components/map/layer/PlayersLayer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {