[core] When reparsing a tile, replace all existing buckets

A tile may go from having particular layers, to not having them.
(Annotation tiles in particular.)
This commit is contained in:
John Firebaugh
2015-10-29 12:01:05 -07:00
parent f6f5d9608d
commit f745f271e3
3 changed files with 4 additions and 5 deletions

View File

@@ -287,6 +287,6 @@ void TileWorker::createSymbolBucket(const GeometryTileLayer& layer,
void TileWorker::insertBucket(const std::string& name, std::unique_ptr<Bucket> bucket) {
if (bucket->hasData()) {
result.buckets.emplace_back(name, std::move(bucket));
result.buckets.emplace(name, std::move(bucket));
}
}