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

missing vector tiles? #13

Closed
mpickell opened this issue Nov 12, 2014 · 1 comment
Closed

missing vector tiles? #13

mpickell opened this issue Nov 12, 2014 · 1 comment

Comments

@mpickell
Copy link

I apologize if this is in the wrong place or if this is a something i should have read somewhere.. i'm new to web mapping and i'm still grasping its conventions.

I'm rendering the mapbox vector tiles into separate layers on my own, so the layers can be turned on and off or arranged (zIndex-like) independently and I have noticed that there are no vector tiles for parts of the ocean (at zoom levels 9+?), and also i have noticed some tiles missing in-land. An example for water is [9/160/206] and for inland is [15/8265/13216]. For these I get a "404 - Not Found" and a response '{"message":"Tile does not exist"}'. It seems to me that this is occurring in the water where it does not intersect any other layers (like 'landforms'), and the same for inland -- where there are no features to display.

My question: Is there a standard way to handle this? In the middle of the water, I would want to place just a solid polygon and fill it my water fill color. Over the land, i would want to do the same but fill it with the landform color. Is there a common technique for identifying these and handling these missing tiles? (Is this related to "overzooming"? i.e., am i supposed to looking back in lower-value zoom levels to get the data?)

@jfirebaugh
Copy link
Contributor

Hi @mpickell. You are correct, the way you would currently need to handle this is by loading tiles from a lower zoom level to cover the gap. In the future we may change the vector tile API to avoid serving 404s for "empty" tiles, which would eliminate this gotcha.

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