fix(core): repaint feature-state-driven symbol paint properties (#4445)
This commit is contained in:
@@ -96,6 +96,18 @@ bool SymbolBucket::hasData() const {
|
||||
hasTextCollisionBoxData() || hasIconCollisionCircleData() || hasTextCollisionCircleData();
|
||||
}
|
||||
|
||||
void SymbolBucket::update(const FeatureStates& states,
|
||||
const GeometryTileLayer& layer,
|
||||
const std::string& layerID,
|
||||
const ImagePositions& imagePositions) {
|
||||
auto it = paintProperties.find(layerID);
|
||||
if (it != paintProperties.end()) {
|
||||
it->second.iconBinders.updateVertexVectors(states, layer, imagePositions);
|
||||
it->second.textBinders.updateVertexVectors(states, layer, imagePositions);
|
||||
uploaded = false;
|
||||
}
|
||||
}
|
||||
|
||||
bool SymbolBucket::hasTextData() const {
|
||||
return !text.segments.empty();
|
||||
}
|
||||
|
||||
@@ -228,6 +228,7 @@ public:
|
||||
|
||||
void upload(gfx::UploadPass&) override;
|
||||
bool hasData() const override;
|
||||
void update(const FeatureStates&, const GeometryTileLayer&, const std::string&, const ImagePositions&) override;
|
||||
std::pair<uint32_t, bool> registerAtCrossTileIndex(CrossTileSymbolLayerIndex&, const RenderTile&) override;
|
||||
void place(Placement&, const BucketPlacementData&, std::set<uint32_t>&) override;
|
||||
void updateVertices(
|
||||
|
||||
Reference in New Issue
Block a user