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 #18

Open
MDrumm90 opened this issue Feb 20, 2022 · 1 comment
Open

MaxNativeZoom #18

MDrumm90 opened this issue Feb 20, 2022 · 1 comment

Comments

@MDrumm90
Copy link

The plugin does not work with maxNativeZoom and maxZoom settings.
Open street maps have only tiles with max zoom 18. Therefore when someone use settings like:

var osmTiles = 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';

//Create the basemap and add it to the map
osmLayer= L.tileLayer(osmTiles, {
	maxZoom: 30,
	maxNativeZoom: 18,
	opacity:0.6
});

The plugin will throw errors and search for wrong tiles (X, Y, Z are wrong)
image

@junewai1993
Copy link

Hi, @MDrumm90 do you able to solve this?

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

No branches or pull requests

2 participants