Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style fill-pattern does not switch based on feature-state #7526

Closed
justenPalmer opened this issue Oct 31, 2018 · 1 comment
Closed

Style fill-pattern does not switch based on feature-state #7526

justenPalmer opened this issue Oct 31, 2018 · 1 comment

Comments

@justenPalmer
Copy link

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

  1. Create a layer with a fill-pattern expression which switches based on feature-state
  2. Set the feature-state for a visible feature
  3. 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.

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

@asheemmamoowala
Copy link
Contributor

Duplicate of #7207

@asheemmamoowala asheemmamoowala marked this as a duplicate of #7207 Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants