summaryrefslogtreecommitdiff
path: root/src/mbgl/text/placement.hpp
diff options
context:
space:
mode:
authorAnsis Brammanis <ansis@mapbox.com>2020-02-11 11:24:14 -0500
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-02-14 16:26:46 +0200
commit761ef9cc8f375aff9a0d756e78da0de994aa1d3f (patch)
treeeb1c648a81d5b1b58cf051e065bda267a230d756 /src/mbgl/text/placement.hpp
parentb7cc4f1af2af13fabe76c2a2c6fcc768657dffd4 (diff)
downloadqtlocation-mapboxgl-upstream/release-sangria.tar.gz
[core] sort symbols using symbol-sort-key before placement (#16023)upstream/release-sangria
fix #15964 partially port mapbox/mapbox-gl-js#9054
Diffstat (limited to 'src/mbgl/text/placement.hpp')
-rw-r--r--src/mbgl/text/placement.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/text/placement.hpp b/src/mbgl/text/placement.hpp
index e2d634c54b..595515d9e9 100644
--- a/src/mbgl/text/placement.hpp
+++ b/src/mbgl/text/placement.hpp
@@ -91,6 +91,9 @@ public:
const mat4& projMatrix;
std::string sourceId;
std::shared_ptr<FeatureIndex> featureIndex;
+ float sortKey;
+ size_t symbolInstanceStart;
+ size_t symbolInstanceEnd;
bool showCollisionBoxes;
};