You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usagerendering
When zooming out, or panning aggressively, we're often showing blank screens because tiles haven't loaded or parsed yet. We should lazily keep tiles in cache that are a couple of zoom levels lower so we can show it immediately when the user zooms or pans.
Hacked in this by duplicating a source in the stylesheet, set maxzoom and minzoom = 5 for that source and created a simple 'background' style from the source. Worked well and adds a lot to the user experience, so this feature is definitely great.
Not sure how flexible you want this, but defining the zoom level (or zoom level difference between current and 'low-detailed' zoom) where MBGL would fetch low-detailed tiles from could be very useful. For instance, showing very grainy highways from z6 at z13 reduces the overall quality feeling of the map. Fetching low-detailed data from a 'cleaner' zoom level alleviates this. Since a lot of your users have custom styles/data, I'd assume there is no perfect universal level to pull low-detailed data from.
Tracking tail work in #9437 for Android and #9438 for iOS and macOS.
@tmpsantos, should we keep this issue open until we address #7026, per this to-do? Also, is this setting disabled by default? Should the SDKs enable it by default? Until the default behavior is to prefetch tiles, I’m not sure we should close this issue.
should we keep this issue open until we address #7026, per this to-do?
We should keep this open until the label flickering is fixed (there is a labeling sprint coming that should address that).
The current behavior is "enabled by default", but it will only work for raster. For vector behavior remains the same as before regardless if prefetch is enabled or not.
CoreThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityperformanceSpeed, stability, CPU usage, memory usage, or power usagerendering
Activity
friedbunny commentedon May 22, 2015
This is one of the major perceptual shortcomings between MBGL and other map libraries. 👍
1ec5 commentedon May 22, 2015
As seen in #119 (comment), mapbox-gl-js keeps low-resolution tiles around to cover aggressive panning (as Google Maps does).
kristfal commentedon May 29, 2015
Hacked in this by duplicating a source in the stylesheet, set maxzoom and minzoom = 5 for that source and created a simple 'background' style from the source. Worked well and adds a lot to the user experience, so this feature is definitely great.
Not sure how flexible you want this, but defining the zoom level (or zoom level difference between current and 'low-detailed' zoom) where MBGL would fetch low-detailed tiles from could be very useful. For instance, showing very grainy highways from z6 at z13 reduces the overall quality feeling of the map. Fetching low-detailed data from a 'cleaner' zoom level alleviates this. Since a lot of your users have custom styles/data, I'd assume there is no perfect universal level to pull low-detailed data from.
incanus commentedon May 30, 2015
This should be happening as of #1281, right? (in-memory parsed tile cache)
This should be independent of zoom or pan and just keep recent tiles.
Or this something more tuned like adjusting a bias for different zooms versus adjacent pans?
jfirebaugh commentedon Jun 1, 2015
Yes, this is about changing the cache retention strategy to preserve low-z tiles specifically.
incanus commentedon Jul 30, 2015
Related: #119
tmpsantos commentedon Jan 15, 2017
I started this one. The approach is to make the prefetch configurable:
1ec5 commentedon Jul 7, 2017
Tracking tail work in #9437 for Android and #9438 for iOS and macOS.
@tmpsantos, should we keep this issue open until we address #7026, per this to-do? Also, is this setting disabled by default? Should the SDKs enable it by default? Until the default behavior is to prefetch tiles, I’m not sure we should close this issue.
tmpsantos commentedon Jul 11, 2017
We should keep this open until the label flickering is fixed (there is a labeling sprint coming that should address that).
The current behavior is "enabled by default", but it will only work for raster. For vector behavior remains the same as before regardless if prefetch is enabled or not.
stale commentedon Dec 1, 2018
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.