diff options
author | Ryan Hamley <rshamley@gmail.com> | 2018-10-18 12:14:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 12:14:52 -0700 |
commit | 0c6b1629efb85386c0197868b2764c14f3fba940 (patch) | |
tree | ae6b98f5fc0fe5d6148e350d992736e180a9898c /src/mbgl/text/collision_feature.hpp | |
parent | 201db67ee8d2368f6ca22753799af3101832ea35 (diff) | |
download | qtlocation-mapboxgl-0c6b1629efb85386c0197868b2764c14f3fba940.tar.gz |
[Core] Ensure queryRenderedFeatures accounts for icon-rotate (#13105)
Diffstat (limited to 'src/mbgl/text/collision_feature.hpp')
-rw-r--r-- | src/mbgl/text/collision_feature.hpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mbgl/text/collision_feature.hpp b/src/mbgl/text/collision_feature.hpp index df1b12819c..5fbd8a5e4b 100644 --- a/src/mbgl/text/collision_feature.hpp +++ b/src/mbgl/text/collision_feature.hpp @@ -52,8 +52,9 @@ public: const float padding, const style::SymbolPlacementType placement, const IndexedSubfeature& indexedFeature_, - const float overscaling) - : CollisionFeature(line, anchor, shapedText.top, shapedText.bottom, shapedText.left, shapedText.right, boxScale, padding, placement, indexedFeature_, overscaling) {} + const float overscaling, + const float rotate) + : CollisionFeature(line, anchor, shapedText.top, shapedText.bottom, shapedText.left, shapedText.right, boxScale, padding, placement, indexedFeature_, overscaling, rotate) {} // for icons // Icons collision features are always SymbolPlacementType::Point, which means the collision feature @@ -66,7 +67,8 @@ public: optional<PositionedIcon> shapedIcon, const float boxScale, const float padding, - const IndexedSubfeature& indexedFeature_) + const IndexedSubfeature& indexedFeature_, + const float rotate) : CollisionFeature(line, anchor, (shapedIcon ? shapedIcon->top() : 0), (shapedIcon ? shapedIcon->bottom() : 0), @@ -75,7 +77,7 @@ public: boxScale, padding, style::SymbolPlacementType::Point, - indexedFeature_, 1) {} + indexedFeature_, 1, rotate) {} CollisionFeature(const GeometryCoordinates& line, const Anchor&, @@ -87,7 +89,8 @@ public: const float padding, const style::SymbolPlacementType, IndexedSubfeature, - const float overscaling); + const float overscaling, + const float rotate); std::vector<CollisionBox> boxes; IndexedSubfeature indexedFeature; |