[core] GeometryTileData needs to be updated in lockstep with FeatureIndex
This commit is contained in:
@@ -131,7 +131,7 @@ void GeometryTile::onLayout(LayoutResult result, const uint64_t resultCorrelatio
|
||||
(void)resultCorrelationID;
|
||||
nonSymbolBuckets = std::move(result.nonSymbolBuckets);
|
||||
pendingFeatureIndex = std::move(result.featureIndex);
|
||||
data = std::move(result.tileData);
|
||||
pendingData = std::move(result.tileData);
|
||||
observer->onTileChanged(*this);
|
||||
}
|
||||
|
||||
@@ -217,6 +217,9 @@ void GeometryTile::commitFeatureIndex() {
|
||||
if (pendingFeatureIndex) {
|
||||
featureIndex = std::move(pendingFeatureIndex);
|
||||
}
|
||||
if (pendingData) {
|
||||
data = std::move(pendingData);
|
||||
}
|
||||
}
|
||||
|
||||
void GeometryTile::queryRenderedFeatures(
|
||||
|
||||
@@ -127,6 +127,7 @@ private:
|
||||
std::unique_ptr<FeatureIndex> featureIndex;
|
||||
std::unique_ptr<FeatureIndex> pendingFeatureIndex;
|
||||
std::unique_ptr<const GeometryTileData> data;
|
||||
std::unique_ptr<const GeometryTileData> pendingData;
|
||||
|
||||
optional<AlphaImage> glyphAtlasImage;
|
||||
optional<PremultipliedImage> iconAtlasImage;
|
||||
|
||||
Reference in New Issue
Block a user