Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxNativeZoom and minNativeZoom are not working #342

Open
Crepu opened this issue Jan 2, 2024 · 3 comments
Open

maxNativeZoom and minNativeZoom are not working #342

Crepu opened this issue Jan 2, 2024 · 3 comments

Comments

@Crepu
Copy link

Crepu commented Jan 2, 2024

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.

@allartk
Copy link
Owner

allartk commented Jan 3, 2024

Hi,

Thanks for the report.

Do you have a minimal (with leaflet + this library) reproducible example?

Thanks!

@Crepu
Copy link
Author

Crepu commented Jan 5, 2024

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.

@Crepu
Copy link
Author

Crepu commented Jan 5, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants