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

Infinite, unstoppable loop if zoom is greater than allowed maximum #15

Open
asinghvi17 opened this issue Jan 19, 2023 · 2 comments
Open

Comments

@asinghvi17
Copy link
Member

See the below MWE:

using Tyler, MapTiles, TileProviders, GLMakie
provider = TileProviders.NASAGIBS(:ViirsEarthAtNight2012)
m = Tyler.Map(HyperRectangle{2, Float32}(Float32[73.675735, 14.7520275], Float32[0.6598676, 1.0475613]), 15;
    provider, min_tiles=8, max_tiles=16, figure=Figure(resolution=(1000, 600)))

this causes a loop that continuously prints out warnings of the form "z greater than max zoom!". I wasn't able to copy it, but that was the gist.

(also, what exactly is zoom, and how do I find its max/min?)

@rafaqz
Copy link
Collaborator

rafaqz commented Jan 19, 2023

Yeah I noticed this too.

Zoom levels are numbers 0 to 23, but the ranges vary with tile provider (read the json in TileProviders.jl) I think each level is 4x magnification.

@asinghvi17
Copy link
Member Author

Gotcha, thanks. Will add that to the docs at some point.

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