diff options
author | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-08-02 15:37:31 -0700 |
---|---|---|
committer | Asheem Mamoowala <asheem.mamoowala@mapbox.com> | 2017-08-21 15:01:36 -0700 |
commit | d21f19686bad074e8ae4ef103e10191665feaaed (patch) | |
tree | d635afa5a737a3466d2bef3a955d46f16ad5a8bc /include | |
parent | 374424610e5f591ce59ab94f50f4ee6cd3225e02 (diff) | |
download | qtlocation-mapboxgl-d21f19686bad074e8ae4ef103e10191665feaaed.tar.gz |
Set Default MaxZoom to 22
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/util/constants.hpp | 1 | ||||
-rw-r--r-- | include/mbgl/util/tileset.hpp | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp index 250c77b078..eb5c201793 100644 --- a/include/mbgl/util/constants.hpp +++ b/include/mbgl/util/constants.hpp @@ -38,6 +38,7 @@ constexpr double MIN_ZOOM = 0.0; constexpr double MAX_ZOOM = 25.5; constexpr float MIN_ZOOM_F = MIN_ZOOM; constexpr float MAX_ZOOM_F = MAX_ZOOM; +constexpr uint8_t DEFAULT_MAX_ZOOM = 22; constexpr uint8_t DEFAULT_PREFETCH_ZOOM_DELTA = 4; diff --git a/include/mbgl/util/tileset.hpp b/include/mbgl/util/tileset.hpp index 2fa19d3f53..61aa47d4ea 100644 --- a/include/mbgl/util/tileset.hpp +++ b/include/mbgl/util/tileset.hpp @@ -1,6 +1,7 @@ #pragma once #include <mbgl/util/range.hpp> +#include <mbgl/util/constants.hpp> #include <vector> #include <string> @@ -18,7 +19,7 @@ public: Scheme scheme; Tileset(std::vector<std::string> tiles_ = std::vector<std::string>(), - Range<uint8_t> zoomRange_ = { 0, 22 }, + Range<uint8_t> zoomRange_ = { 0, util::DEFAULT_MAX_ZOOM }, std::string attribution_ = {}, Scheme scheme_ = Scheme::XYZ) : tiles(std::move(tiles_)), |