summaryrefslogtreecommitdiff
path: root/include/mbgl/map
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2017-01-15 11:27:52 -0500
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-07-07 14:28:52 +0300
commit407fbc70b1dc6dab6b7aa5a4b9c57b4e08906c79 (patch)
tree1914348d4136449842822f092eaff7d589861e35 /include/mbgl/map
parent2876db72f2d235a02e5670329c4f8dcb2a65a8ed (diff)
downloadqtlocation-mapboxgl-407fbc70b1dc6dab6b7aa5a4b9c57b4e08906c79.tar.gz
[core] Prefetch low resolution tiles
Diffstat (limited to 'include/mbgl/map')
-rw-r--r--include/mbgl/map/map.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 1b45c87c28..158e9d733d 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -156,6 +156,15 @@ public:
AnnotationIDs queryPointAnnotations(const ScreenBox&);
+ // Tile prefetching
+ //
+ // When loading a map, if `PrefetchZoomDelta` is set to any number greater than 0, the map will
+ // first request a tile for `zoom = getZoom() - delta` in a attempt to display a full map at
+ // lower resolution as quick as possible. It will get clamped at the tile source minimum zoom.
+ // The default `delta` is 4.
+ void setPrefetchZoomDelta(uint8_t delta);
+ uint8_t getPrefetchZoomDelta() const;
+
// Memory
void onLowMemory();