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

Additional zoom levels don't work if maxNativeZoom is 0 #3004

Closed
farowebshare opened this issue Nov 7, 2014 · 2 comments
Closed

Additional zoom levels don't work if maxNativeZoom is 0 #3004

farowebshare opened this issue Nov 7, 2014 · 2 comments

Comments

@farowebshare
Copy link

If there is just one tile and maxNativeZoom is set to 0, the map goes blank in the additional zoom levels.

Reason: In _getTileSize and _getZoomForUrl the checks based on maxNativeZoom also return false if it is 0. Changing the check to something like (typeof zoomN === 'number') seems to have fixed the bug.

Version: 0.7.1. Verified that problem still exists in current develop version.

@mourner
Copy link
Member

mourner commented Nov 7, 2014

Hmm, what's the use case of having a TileLayer with one tile and maNativeZoom = 0 anyway?

@farowebshare
Copy link
Author

The maps used in our web application are created automatically by a desktop software based on user-created projects. So a map with just a single tile is theoretically possible, at least for test projects.

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