unable to set maxZoom above 18
See original GitHub issueHi, 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>
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Increase Leaflet Max Zoom Level above 18 [#3156854] - Drupal
I've been working with the Geolocation Field to set up some custom markers using Leaflet map, and noticed that the maximum zoom level...
Read more >Unable to Zoom WMS above 20 in Leaflet?
tileLayer has default 18 as maxZoom value and L.tileLayer.wms inherits this value. You have to set option maxZoom to desired value in your...
Read more >Leaflet how to increase maxZoom - Stack Overflow
But when I zoom more than 18 levels, the map image disappears leaving only a grey plane. Here is the html: <div id="map"></div>....
Read more >How to set webmap max zoom greater than 19?
I want to make a web map using tiles stored in mapbox. Notice how you can zoom into zoom level 21 in the...
Read more >zoom level limit - a max zoom out - Google Groups
You can limit zoom levels by setting minZoom and maxZoom properties of ... but i'm unable to implement your code. am i ok...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
KoRiGaNs’ example does not work with leaflet 1.3.4but i found a example works on zoom >= 18 which doesnot use vue2leaflet~~https://codepen.io/davland7/pen/YpqdJo~~Only one difference i can see is the place when to add maxZoom/minZoom props.OK, i’m too noob that take so much times to figured out how to make this work
KoRiGaN says “all components have a property mapObject which is the actual Leaflet object.” on https://github.com/KoRiGaN/Vue2Leaflet/issues/46#issuecomment-303684715
Method 1: add options props
Method 2: add ref props, and change it with javascript object
Hi KoRiGaN, I was trying to implement this and noticed even on your jsfiddle when zoomed in to levels 19 and 20 there are no features. Did this solution break since this original issue (was so long ago)?