summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-12-11 14:36:27 -0800
committerChris Loer <chris.loer@mapbox.com>2017-12-11 15:05:18 -0800
commit3fed2358d6b31db0fec661c0183b79d59d62b664 (patch)
tree89a9f01f0af92a0ca75bca942f4589f6402180d6 /src
parent78545723fea953417e3de188e76cf92e8b6a67e4 (diff)
downloadqtlocation-mapboxgl-3fed2358d6b31db0fec661c0183b79d59d62b664.tar.gz
[core] Include bucket name in queryRenderedSymbols duplicate feature filter
- Port of GL JS PR #5703 - Fixes issue #10616
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/text/collision_index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/text/collision_index.cpp b/src/mbgl/text/collision_index.cpp
index fee28b5873..8014efe6c7 100644
--- a/src/mbgl/text/collision_index.cpp
+++ b/src/mbgl/text/collision_index.cpp
@@ -303,13 +303,13 @@ std::vector<IndexedSubfeature> CollisionIndex::queryRenderedSymbols(const Geomet
}
}
- std::unordered_map<std::string, std::unordered_set<std::size_t>> sourceLayerFeatures;
+ std::unordered_map<std::string, std::unordered_map<std::string, std::unordered_set<std::size_t>>> sourceLayerFeatures;
for (auto& queryResult : thisTileFeatures) {
auto& feature = queryResult.first;
auto& bbox = queryResult.second;
// Skip already seen features.
- auto& seenFeatures = sourceLayerFeatures[feature.sourceLayerName];
+ auto& seenFeatures = sourceLayerFeatures[feature.sourceLayerName][feature.bucketName];
if (seenFeatures.find(feature.index) != seenFeatures.end())
continue;