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.
Prefetch destination tiles when animating a viewport change #2006
When you animate a significant change to the map view's visible region, you always arrive at the destination before the destination tiles have loaded. mbgl should determine which tiles will be needed at the destination and prefetch them as soon as the animation begins.
With the default animation duration of 300 ms, prefetching might not make a huge difference. But now you can specify a custom duration for -setCamera:withDuration:animationTimingFunction:, and doing so would make a lot of sense for a flyTo()-style animation – in that case, you’d definitely want to calculate which tiles matter and start loading them as soon as the animation begins, rather than on demand.
Activity
1ec5 commentedon Sep 14, 2015
With the default animation duration of 300 ms, prefetching might not make a huge difference. But now you can specify a custom duration for
-setCamera:withDuration:animationTimingFunction:, and doing so would make a lot of sense for aflyTo()-style animation – in that case, you’d definitely want to calculate which tiles matter and start loading them as soon as the animation begins, rather than on demand.stale commentedon Nov 24, 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.