Use playerMarkers.layerName for the layer name
This commit is contained in:
parent
ee8607ed6d
commit
d05b7a63ac
@ -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);
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user