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

Support overzooming raster #4167

Closed
jonkan opened this issue Mar 2, 2016 · 1 comment
Closed

Support overzooming raster #4167

jonkan opened this issue Mar 2, 2016 · 1 comment

Comments

@jonkan
Copy link

jonkan commented Mar 2, 2016

My understanding is that overzoomed rendering of raster-tiles within a source's min/max-zoom is currently not supported?.
The particular issue we're experiencing is that, when panning around offline, tiles disappear. For example:

  • A raster source with minZoom:5, maxZoom:18.
  • A cache (offline database) containing tiles for z5-16.
  • Pan around on z > 16 while offline.

While zooming in everything is fine, e.g. a z16 tile gets rendered and gets overzoomed when continuing to z > 16. But when panning, any overzoomed tiles that leave the screen don’t get re-rendered and we’re left with a blank map.

One could argue that this is not an issue since the source is specified to have z5-z18 and we’re missing z17-18. However, allowing overzoomed rendering would have the following benefits:

  • Allow downloading part of a source’s zoom levels for offline, e.g. z5-16, while still allowing higher zoom levels, e.g. z17-18, to be downloaded on-demand (when a network connection is available).
  • Handles poor/lost network connections better by rendering a lower zoom level tile while waiting for the "correct one” (that might not come).

What are you thoughts on this?
Would it be possible to render the "parent-tile" where the expected tile don't yet exist?

@jfirebaugh
Copy link
Contributor

This is being tracked in #123.

@jfirebaugh jfirebaugh changed the title Support overzooming raster Support overzooming raster Mar 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants