Reuse existing players pane if present
This commit is contained in:
parent
77b9850ea9
commit
79fc8f6816
@ -39,7 +39,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const store = useStore(),
|
const store = useStore(),
|
||||||
playerPane = props.leaflet.createPane('players'),
|
playerPane = props.leaflet.getPane('players') || props.leaflet.createPane('players'),
|
||||||
players = computed(() => store.state.players),
|
players = computed(() => store.state.players),
|
||||||
playerCount = computed(() => store.state.players.size),
|
playerCount = computed(() => store.state.players.size),
|
||||||
playersAboveMarkers = computed(() => store.state.ui.playersAboveMarkers),
|
playersAboveMarkers = computed(() => store.state.ui.playersAboveMarkers),
|
||||||
|
Loading…
Reference in New Issue
Block a user