summaryrefslogtreecommitdiff
path: root/include/mbgl/style/sources/vector_source.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-06 09:44:49 +0200
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-11 10:40:30 +0200
commitfce4129435ddc5f14abdd1e2ed6a74bf84e1c496 (patch)
treeb0195f13b1783298f940dc0ccf72dac6098532dd /include/mbgl/style/sources/vector_source.hpp
parenta23100586098c2d44682444cdd31001f1eba5859 (diff)
downloadqtlocation-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/vector_source.hpp')
-rw-r--r--include/mbgl/style/sources/vector_source.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/style/sources/vector_source.hpp b/include/mbgl/style/sources/vector_source.hpp
index 4165af0a61..83fcae95d6 100644
--- a/include/mbgl/style/sources/vector_source.hpp
+++ b/include/mbgl/style/sources/vector_source.hpp
@@ -30,6 +30,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;