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

Add option to prefetch low-resolution tiles #9437

Closed
1ec5 opened this issue Jul 6, 2017 · 1 comment
Closed

Add option to prefetch low-resolution tiles #9437

1ec5 opened this issue Jul 6, 2017 · 1 comment
Labels
Android Mapbox Maps SDK for Android feature performance Speed, stability, CPU usage, memory usage, or power usage

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jul 6, 2017

#7741 adds mbgl::Map::getPrefetchZoomDelta() and setPrefetchZoomDelta() for controlling how aggressively the map loads lower-resolution tiles. This issue tracks adding a corresponding public API to the Android SDK.

@tmpsantos says the optimal zoom delta is 4. Since this isn’t a value that most developers would be able to come up with on their own, we’d expose a simpler setPrefetchesTiles(boolean) and corresponding getPrefetchesTiles() or something of that nature.

#9438 is the corresponding issue for iOS and macOS.

/cc @tmpsantos @tobrun

@1ec5 1ec5 added Android Mapbox Maps SDK for Android feature performance Speed, stability, CPU usage, memory usage, or power usage labels Jul 6, 2017
@tobrun tobrun added this to the android-v5.2.0 milestone Jul 6, 2017
@1ec5
Copy link
Contributor Author

1ec5 commented Jul 10, 2017

@tmpsantos says the optimal zoom delta is 4.

Apparently this constant is defined in constants.hpp.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android feature performance Speed, stability, CPU usage, memory usage, or power usage
Projects
None yet
Development

No branches or pull requests

2 participants