Use playerMarkers.layerName for the layer name
This commit is contained in:
parent
ee8607ed6d
commit
d05b7a63ac
@ -62,16 +62,18 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
const store = useStore();
|
||||||
|
|
||||||
if(!this.componentSettings!.hideByDefault) {
|
if(!this.componentSettings!.hideByDefault) {
|
||||||
this.leaflet.getLayerManager().addLayer(
|
this.leaflet.getLayerManager().addLayer(
|
||||||
this.layerGroup,
|
this.layerGroup,
|
||||||
true,
|
true,
|
||||||
useStore().state.messages.playersHeading,
|
store.state.components.playerMarkers.layerName,
|
||||||
this.componentSettings!.layerPriority);
|
this.componentSettings!.layerPriority);
|
||||||
} else {
|
} else {
|
||||||
this.leaflet.getLayerManager().addHiddenLayer(
|
this.leaflet.getLayerManager().addHiddenLayer(
|
||||||
this.layerGroup,
|
this.layerGroup,
|
||||||
useStore().state.messages.playersHeading,
|
store.state.components.playerMarkers.layerName,
|
||||||
this.componentSettings!.layerPriority);
|
this.componentSettings!.layerPriority);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user