Use playerMarkers.layerName for the layer name

This commit is contained in:
James Lyne 2021-07-29 00:34:40 +01:00
parent ee8607ed6d
commit d05b7a63ac

View File

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