diff options
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/style/sources/vector_source.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mbgl/style/sources/vector_source.hpp b/include/mbgl/style/sources/vector_source.hpp index ece7f5615a..97f0a7e5a8 100644 --- a/include/mbgl/style/sources/vector_source.hpp +++ b/include/mbgl/style/sources/vector_source.hpp @@ -12,7 +12,8 @@ namespace style { class VectorSource final : public Source { public: - VectorSource(std::string id, variant<std::string, Tileset> urlOrTileset); + VectorSource(std::string id, variant<std::string, Tileset> urlOrTileset, optional<float> maxZoom = nullopt, + optional<float> minZoom = nullopt); ~VectorSource() final; const variant<std::string, Tileset>& getURLOrTileset() const; @@ -31,6 +32,8 @@ private: const variant<std::string, Tileset> urlOrTileset; std::unique_ptr<AsyncRequest> req; mapbox::base::WeakPtrFactory<Source> weakFactory {this}; + optional<float> maxZoom; + optional<float> minZoom; }; template <> |