Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Don't treat empty raster tiles as valid #8164

Merged
merged 1 commit into from
Feb 22, 2017
Merged

Conversation

kkaefer
Copy link
Contributor

@kkaefer kkaefer commented Feb 22, 2017

We're currently treating raster tiles that are "empty" or not found as valid by setting DataAvailability::All. Tiles that can't be found on the server and that return a 404 code are treated as valid responses with no content ("empty").

While the concept of an "empty" tile makes sense for vector sources (denoting no features within that tile), it doesn't make sense for raster sources. Instead, we should fall back to lower zoom level tiles. Our updateRenderables algorithm takes care of loading these lower zoom level tiles iff the loaded tile can't be rendered.

Fixes #8151

@mention-bot
Copy link

@kkaefer, thanks for your PR! By analyzing this pull request, we identified @jfirebaugh to be potential reviewers.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants