diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-02-06 09:44:49 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2020-02-11 10:40:30 +0200 |
commit | fce4129435ddc5f14abdd1e2ed6a74bf84e1c496 (patch) | |
tree | b0195f13b1783298f940dc0ccf72dac6098532dd /include/mbgl/style/sources/raster_source.hpp | |
parent | a23100586098c2d44682444cdd31001f1eba5859 (diff) | |
download | qtlocation-mapboxgl-fce4129435ddc5f14abdd1e2ed6a74bf84e1c496.tar.gz |
[core] Add runtime API for setting tile prefetch delta for Source
New setPrefetchZoomDelta(optional<uint8_t> delta) method allow overriding
default tile prefetch setting that is defined by the Map instance. The
method can be moved to generic style specification if found to be useful
for gl-js engine.
Diffstat (limited to 'include/mbgl/style/sources/raster_source.hpp')
-rw-r--r-- | include/mbgl/style/sources/raster_source.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/style/sources/raster_source.hpp b/include/mbgl/style/sources/raster_source.hpp index 00a3b788c2..e06c3404e9 100644 --- a/include/mbgl/style/sources/raster_source.hpp +++ b/include/mbgl/style/sources/raster_source.hpp @@ -31,6 +31,9 @@ public: return weakFactory.makeWeakPtr(); } +protected: + Mutable<Source::Impl> createMutable() const noexcept final; + private: const variant<std::string, Tileset> urlOrTileset; std::unique_ptr<AsyncRequest> req; |