-
Notifications
You must be signed in to change notification settings - Fork 375
Closed
Description
Hi, i'm unable to set maxZoom above 18.
My code:
<template>
<div style="height: 100%; width:100%">
<v-map style="height: 100%; width:100%" :zoom="zoom" :center="center" :maxZoom="max" :minZoom="min">
<v-tilelayer :url="url" :attribution="attribution" :maxZoom="max" :minZoom="min"></v-tilelayer>
</v-map>
</div>
</template>
<script>
import Vue2Leaflet from 'vue2-leaflet';
export default {
name: 'home',
components: {
'v-map': Vue2Leaflet.Map,
'v-tilelayer' :Vue2Leaflet.TileLayer,
'v-marker': Vue2Leaflet.Marker
},
data () {
return {
zoom: 17,
max: 19,
min: 13,
center: L.latLng(6.328400, 8.105166),
url: 'http://localhost:5000/tiles/{z}/{x}/{y}/',
attribution: 'Demo'
}
}
}
</script>
<style>
</style>
Metadata
Metadata
Assignees
Labels
No labels