summaryrefslogtreecommitdiff
path: root/src/mbgl/text/collision_tile.hpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-05-15 14:17:06 -0700
committerAnsis Brammanis <brammanis@gmail.com>2017-07-10 13:09:32 -0400
commite9b67e9b6f40f5bdebb9d2b590d0ae91e04a116c (patch)
treeaf5666bdedcb2ea04e66e58d198371631f90eb51 /src/mbgl/text/collision_tile.hpp
parent7d59e3f8b3a0b83833cd87eb8bfefa7d0856f0a9 (diff)
downloadqtlocation-mapboxgl-e9b67e9b6f40f5bdebb9d2b590d0ae91e04a116c.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.hpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mbgl/text/collision_tile.hpp b/src/mbgl/text/collision_tile.hpp
index bdacbb7437..161bc3a688 100644
--- a/src/mbgl/text/collision_tile.hpp
+++ b/src/mbgl/text/collision_tile.hpp
@@ -47,8 +47,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;
@@ -62,6 +62,8 @@ private:
Tree tree;
Tree ignoredTree;
+
+ float perspectiveRatio;
};
} // namespace mbgl