summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/geometry_tile_worker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/tile/geometry_tile_worker.cpp')
-rw-r--r--src/mbgl/tile/geometry_tile_worker.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mbgl/tile/geometry_tile_worker.cpp b/src/mbgl/tile/geometry_tile_worker.cpp
index 482cbe0053..f57732117b 100644
--- a/src/mbgl/tile/geometry_tile_worker.cpp
+++ b/src/mbgl/tile/geometry_tile_worker.cpp
@@ -328,7 +328,7 @@ void GeometryTileWorker::parse() {
}
std::unordered_map<std::string, std::unique_ptr<SymbolLayout>> symbolLayoutMap;
- nonSymbolBuckets.clear();
+ buckets.clear();
featureIndex = std::make_unique<FeatureIndex>();
BucketParameters parameters { id, mode, pixelRatio };
@@ -388,7 +388,7 @@ void GeometryTileWorker::parse() {
}
for (const auto& layer : group) {
- nonSymbolBuckets.emplace(layer->getID(), bucket);
+ buckets.emplace(layer->getID(), bucket);
}
}
}
@@ -448,8 +448,6 @@ void GeometryTileWorker::performSymbolLayout() {
symbolLayoutsNeedPreparation = false;
}
- std::unordered_map<std::string, std::shared_ptr<Bucket>> buckets;
-
for (auto& symbolLayout : symbolLayouts) {
if (obsolete) {
return;
@@ -471,10 +469,9 @@ void GeometryTileWorker::performSymbolLayout() {
firstLoad = false;
parent.invoke(&GeometryTile::onLayout, GeometryTile::LayoutResult {
- std::move(nonSymbolBuckets),
+ std::move(buckets),
std::move(featureIndex),
*data ? (*data)->clone() : nullptr,
- std::move(buckets),
std::move(glyphAtlasImage),
std::move(iconAtlasImage)
}, correlationID);