summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-08-02 22:37:31 (GMT)
committerAsheem Mamoowala <asheem.mamoowala@mapbox.com>2017-08-21 22:01:36 (GMT)
commitd21f19686bad074e8ae4ef103e10191665feaaed (patch)
treed635afa5a737a3466d2bef3a955d46f16ad5a8bc /include
parent374424610e5f591ce59ab94f50f4ee6cd3225e02 (diff)
downloadqtlocation-mapboxgl-d21f19686bad074e8ae4ef103e10191665feaaed.tar.gz
Set Default MaxZoom to 22
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/util/constants.hpp1
-rw-r--r--include/mbgl/util/tileset.hpp3
2 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp
index 250c77b..eb5c201 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 2fa19d3..61aa47d 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_)),