diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-08-22 12:57:11 +0300 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-08-22 12:57:11 +0300 |
commit | 1c633072fcea7ad153ab6f8ec40dd72d83541ead (patch) | |
tree | fa90c930a58672fa48bf46840f6b88ec645864f0 /include/mbgl/util/constants.hpp | |
parent | c53896caefc96a8c18ab746026330ddc4fc0338e (diff) | |
download | qtlocation-mapboxgl-1c633072fcea7ad153ab6f8ec40dd72d83541ead.tar.gz |
Bump Mapbox GL Native
mapbox-gl-native @ bd15e273dce767458d335aeb1f50aa081390d593
Diffstat (limited to 'include/mbgl/util/constants.hpp')
-rw-r--r-- | include/mbgl/util/constants.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mbgl/util/constants.hpp b/include/mbgl/util/constants.hpp index c2250c6f2e..eb5c201793 100644 --- a/include/mbgl/util/constants.hpp +++ b/include/mbgl/util/constants.hpp @@ -19,7 +19,8 @@ constexpr float tileSize = 512; * * Positions are stored as signed 16bit integers. * One bit is lost for signedness to support features extending past the left edge of the tile. - * One bit is lost because the line vertex buffer packs 1 bit of other data into the int. + * One bit is lost because the line vertex buffer used to pack 1 bit of other data into the int. + * This is no longer the case but we're reserving this bit anyway. * One bit is lost to support features extending past the extent on the right edge of the tile. * This leaves us with 2^13 = 8192 */ @@ -37,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; |