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

[core] Support a range of zooms in TileRange #11227

Merged
merged 1 commit into from
Feb 19, 2018

Conversation

asheemmamoowala
Copy link
Contributor

Closes #11213.
Closes #11209.

While panning, tiles may be pre-fetched at a lower zoom level than the current zoom. The TileRange class and its use in TilePyramid incorrectly assumed that all tiles created are at a single fixed zoom level.

This PR allows a single instance of TileRange to be used in TilePyramid with a range of tile zooms, to support loading parent tiles for pre-fetching. I updated the tile range checking to be inclusive of min and max to support the case where the tile range narrows to a single value for lower zoom levels.

…d requesting parent tiles of ideal zoom tiles.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
3 participants