From d05b7a63aca73c0b655d7b2a22729a7c22323972 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Thu, 29 Jul 2021 00:34:40 +0100 Subject: [PATCH] Use playerMarkers.layerName for the layer name --- src/components/map/layer/PlayersLayer.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/map/layer/PlayersLayer.vue b/src/components/map/layer/PlayersLayer.vue index 35bb171..e47dc4f 100644 --- a/src/components/map/layer/PlayersLayer.vue +++ b/src/components/map/layer/PlayersLayer.vue @@ -62,16 +62,18 @@ export default defineComponent({ }, mounted() { + const store = useStore(); + if(!this.componentSettings!.hideByDefault) { this.leaflet.getLayerManager().addLayer( this.layerGroup, true, - useStore().state.messages.playersHeading, + store.state.components.playerMarkers.layerName, this.componentSettings!.layerPriority); } else { this.leaflet.getLayerManager().addHiddenLayer( this.layerGroup, - useStore().state.messages.playersHeading, + store.state.components.playerMarkers.layerName, this.componentSettings!.layerPriority); } },