leaflet.offline
leaflet.offline copied to clipboard
maxNativeZoom and minNativeZoom are not working
Hi there
I was trying to use this options to extend the zoom capability of my app but it seems the are not working.
I have read this issue and this issue that are related but I could not resolve neither figure out a solution to this.
I'm using Leaflet version 1.9.4, leaflet offline 3.0.1 in a vue 3 app.
Hi,
Thanks for the report.
Do you have a minimal (with leaflet + this library) reproducible example?
Thanks!
I have been making a codepen with an example and I notice that is not a real problem with the plugin.
You can check it works perfect here https://codepen.io/Daniel-Mendez-the-flexboxer/pen/VwReoJP
I'm still debugging my code to find what is the problem.
Thanks for the answer.
I have modified a little bit the codepen I posted.
If you comment lines from 44 to 47 and uncomment the next two ones you could see all working.
But what we really need is to download the tiles from minZoom to maxZoom, then set min and max Native Zoom to the values of minZoom and maxZoom and extend the values of this two. So we can increase the zoom range but not to download to many tiles.
In the codepen the line baseLayer.options.minZoom = minZoom+2
does not work. This is, there are not more zoom available. In the app we are building, we get a white tile. I suppose is because there is no tile to show. But, why maxNativeZoom does not take care of this behaviour?