mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-23 00:30:18 +01:00
Limit max zoom to 16.
This commit is contained in:
parent
ab5400881b
commit
ad40381859
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<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%" :maxZoom="maxZoom" :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">
|
<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">
|
||||||
@ -43,6 +43,7 @@ export default {
|
|||||||
socket: null,
|
socket: null,
|
||||||
url: 'map/{z}/{x}/{y}.png',
|
url: 'map/{z}/{x}/{y}.png',
|
||||||
zoom: 3,
|
zoom: 3,
|
||||||
|
maxZoom: 16,
|
||||||
noWrap: true,
|
noWrap: true,
|
||||||
center: [0,0],
|
center: [0,0],
|
||||||
worldCopyJump: false,
|
worldCopyJump: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user