diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-11-06 14:44:52 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <thiago@mapbox.com> | 2015-11-06 14:44:52 +0200 |
commit | cb92290f9d486b7ece7168e1b42e5572a2b2c40c (patch) | |
tree | a024d682d7790d941abd95041f1f7740aa5c40f0 | |
parent | 179917ccb670d62125754a6b519aa3c89f16d25f (diff) | |
download | qtlocation-mapboxgl-cb92290f9d486b7ece7168e1b42e5572a2b2c40c.tar.gz |
[core] Use tileSize constant
Instead of hardcoding the tile size again.
-rw-r--r-- | src/mbgl/map/source.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/map/source.hpp b/src/mbgl/map/source.hpp index 9120bbfa78..3abb8f8a1f 100644 --- a/src/mbgl/map/source.hpp +++ b/src/mbgl/map/source.hpp @@ -11,6 +11,7 @@ #include <mbgl/util/mat4.hpp> #include <mbgl/util/ptr.hpp> #include <mbgl/util/chrono.hpp> +#include <mbgl/util/constants.hpp> #include <rapidjson/document.h> @@ -37,7 +38,7 @@ public: SourceType type = SourceType::Vector; std::string url; std::vector<std::string> tiles; - uint16_t tile_size = 512; + uint16_t tile_size = util::tileSize; uint16_t min_zoom = 0; uint16_t max_zoom = 22; std::string attribution; |