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
maplibre-gl-js version: 4.7.1 browser: Google Chrome 130.0.6723.70
Hello everyone:
I want to change the fill image of the polygon, using the fill-pattern attribute work with feature-state.
However, I did not get the correct result: "feature-state" is different, but the "fill-pattern" is the same..
I've looked in the code to better understand why this is not supported and I think the problem is that feature-state is stored in the main thread while the worker is parsing the tiles and preparing the images for pattern it can only do that for a feature without its state, as can be seen here:
If someone would be interested enough to contribute a PR it might be supported, but otherwise, very low chances.
For different fill patterns you might want to use different geojson features, html markers or other dynamic solutions that are not based on feature-state...
maplibre-gl-js version: 4.7.1
browser: Google Chrome 130.0.6723.70
Hello everyone:
I want to change the fill image of the polygon, using the fill-pattern attribute work with feature-state.

However, I did not get the correct result: "feature-state" is different, but the "fill-pattern" is the same..
When I use the properties(name) that come with "feature" , it can be achieved .
Steps:
Link to Demonstration
https://jsbin.com/xebocucufi/3/edit?html,console,output
First question, hope I've made it clear.
I'm not sure if it's a bug. Any help is welcome.
The text was updated successfully, but these errors were encountered: