You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using fill-pattern expressions, the resulting fill does not correctly switch based on feature-state.
mapbox-gl-js version: 50.0
browser: Chrome 69.0.3497.100
Steps to Trigger Behavior
Create a layer with a fill-pattern expression which switches based on feature-state
Set the feature-state for a visible feature
Observe that the fill-pattern does not change for the feature
Link to Demonstration
In the above example, there are two layers which switch style based on feature state from the same source-layer. The first has the expression in "line-color" which works as intended. The second has a "fill-pattern" with the exact same logic, but does not execute correctly.
When using fill-pattern expressions, the resulting fill does not correctly switch based on feature-state.
mapbox-gl-js version: 50.0
browser: Chrome 69.0.3497.100
Steps to Trigger Behavior
Link to Demonstration
In the above example, there are two layers which switch style based on feature state from the same source-layer. The first has the expression in "line-color" which works as intended. The second has a "fill-pattern" with the exact same logic, but does not execute correctly.
https://jsbin.com/qidikopure/edit?html,output
Expected Behavior
The feature with the set state should appear with a diagonal red line pattern
Actual Behavior
The feature with the set state has the default dotted pattern
The text was updated successfully, but these errors were encountered: