diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-05-15 14:17:06 -0700 |
---|---|---|
committer | Ansis Brammanis <brammanis@gmail.com> | 2017-07-11 09:10:22 -0700 |
commit | 59df3a90f41461562a80688337ec53687e341124 (patch) | |
tree | aae3e94ddc74134600494fce944a5b3ab764a41a /src/mbgl/text/collision_tile.hpp | |
parent | e364f24570f863044b9c464c2eb8c0fd75c5a80b (diff) | |
download | qtlocation-mapboxgl-59df3a90f41461562a80688337ec53687e341124.tar.gz |
[core] Improved label pitch-scaling: approximate collision box shapes based on tile distance from camera.
Diffstat (limited to 'src/mbgl/text/collision_tile.hpp')
-rw-r--r-- | src/mbgl/text/collision_tile.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/text/collision_tile.hpp b/src/mbgl/text/collision_tile.hpp index 59fd1a3927..dbff6a007b 100644 --- a/src/mbgl/text/collision_tile.hpp +++ b/src/mbgl/text/collision_tile.hpp @@ -49,8 +49,8 @@ public: const PlacementConfig config; - const float minScale = 0.5f; - const float maxScale = 2.0f; + float minScale = 0.5f; + float maxScale = 2.0f; float yStretch; std::array<float, 4> rotationMatrix; @@ -64,6 +64,8 @@ private: Tree tree; Tree ignoredTree; + + float perspectiveRatio; }; } // namespace mbgl |