diff --git a/src/mbgl/map/tile_worker.cpp b/src/mbgl/map/tile_worker.cpp index 88bbf16a3f3..96300a803ff 100644 --- a/src/mbgl/map/tile_worker.cpp +++ b/src/mbgl/map/tile_worker.cpp @@ -287,6 +287,6 @@ void TileWorker::createSymbolBucket(const GeometryTileLayer& layer, void TileWorker::insertBucket(const std::string& name, std::unique_ptr bucket) { if (bucket->hasData()) { - result.buckets.emplace_back(name, std::move(bucket)); + result.buckets.emplace(name, std::move(bucket)); } } diff --git a/src/mbgl/map/tile_worker.hpp b/src/mbgl/map/tile_worker.hpp index 27fc0d37fea..44868a12ffa 100644 --- a/src/mbgl/map/tile_worker.hpp +++ b/src/mbgl/map/tile_worker.hpp @@ -31,7 +31,7 @@ class GeometryTileLayer; class TileParseResultBuckets { public: TileData::State state = TileData::State::invalid; - std::vector>> buckets; + std::unordered_map> buckets; }; using TileParseResult = mapbox::util::variant