mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-23 16:50:18 +01:00
Switch player layer visibility on checkbox changed.
This commit is contained in:
parent
634702f287
commit
6339275b5b
@ -2,9 +2,11 @@
|
|||||||
<v-container fluid style="height: 100%; padding: 0px">
|
<v-container fluid style="height: 100%; padding: 0px">
|
||||||
<l-map @mousemove="update" ref="map" style="height: 100%" :zoom="zoom" :center="center" :worldCopyJump="worldCopyJump" :crs="crs" :options="mapOptions">
|
<l-map @mousemove="update" ref="map" style="height: 100%" :zoom="zoom" :center="center" :worldCopyJump="worldCopyJump" :crs="crs" :options="mapOptions">
|
||||||
<l-tile-layer ref="baseLayer" :url="url" :attribution="attribution" :tms="tms" continuousWorld="false" minZoom=0 :noWrap="noWrap" :options="layerOptions"></l-tile-layer>
|
<l-tile-layer ref="baseLayer" :url="url" :attribution="attribution" :tms="tms" continuousWorld="false" minZoom=0 :noWrap="noWrap" :options="layerOptions"></l-tile-layer>
|
||||||
|
<div v-if="playersLayer">
|
||||||
<l-marker v-for="p in players" :key="p.name" :lat-lng="flipCoordinates(p.geometry.coordinates)" :icon="iconPlayer">
|
<l-marker v-for="p in players" :key="p.name" :lat-lng="flipCoordinates(p.geometry.coordinates)" :icon="iconPlayer">
|
||||||
<l-popup>{{p.properties.name}}</l-popup>
|
<l-popup>{{p.properties.name}}</l-popup>
|
||||||
</l-marker>
|
</l-marker>
|
||||||
|
</div>
|
||||||
</l-map>
|
</l-map>
|
||||||
</v-container>
|
</v-container>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user