Open fdansv opened 2 years ago
As far as I understand, transitions for feature-state-dependent properties are not supported in the same way as data-driven properties don't, since we have to maintain these values in vertex data as opposed to global property changes (non-data-driven, updated through WebGL uniforms). We should make this clearer in the docs.
Hi y'all. I have a
fill
layer where I want to change its features' fill color according to somefeatureState
in them, but applying a transition in between. The paint properties of this layer are as follows:My expectation would be that once I call
setFeatureState on one of that layer's features, the color will be gradually changed as specified in the
fill-color-transition` property. But so far it's just switching colors without transition.Additionally, when trying to debug with
queryRenderedFeatures
, the transition property seems to have been set toundefined
, which seems unusual.The docs don't seem super clear on whether transitions are compatible with feature state changes, as opposed to paint property changes (indeed, going that route seems to work as expected but I need to change individual feature states, not the whole layer). So I wanted to know if there's anything here I'm doing wrong.
Thank you!