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

Enforce max zoom #47

Open
rmarianski opened this issue Nov 8, 2016 · 2 comments
Open

Enforce max zoom #47

rmarianski opened this issue Nov 8, 2016 · 2 comments
Assignees
Labels

Comments

@rmarianski
Copy link
Member

Some requests for high zooms [1] end up producing overflows and generate errors [2]. Can we start enforcing a max zoom, and return 404s for zooms higher than that?

@nvkelso what would be reasonable? 20? 25?

[1] https://tile.mapzen.com/mapzen/vector/v1/all/9999/1/1.json
[2]

File "/usr/local/lib/python2.7/dist-packages/tilequeue/tile.py", line 319, in calc_meters_per_pixel_dim (2 ** (zoom + 8))) | OverflowError: long int too large to convert to float
@nvkelso
Copy link
Member

nvkelso commented Nov 8, 2016

20

That's the max zoom we set in Leaflet for house styles and usage on 20 is very low:

https://cloud.githubusercontent.com/assets/853051/20083180/a9ebc9a4-a50f-11e6-9884-59a6f03b8c9b.png

@nvkelso
Copy link
Member

nvkelso commented Nov 8, 2016

(If someday we did indoor mapping tiles this might change, but overstuffing a zoom 18 or 20 tile would probably be fine.)

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

No branches or pull requests

2 participants