-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix feature-state dependent styles for *-pattern properties #7207
Comments
I lean toward the first option, although it sounds like we have a few other issues also pushing us towards the second one. Overall, it feels to me like we might have to think about rearchitecting how we partition work to the worker.
|
Any update on this @mollymerp? |
I would love some attention on this from the team, it's holding me on a fork since the days of #6289. |
@charandas currently there are no plans to implement this because it requires a lot of effort to implement, and our team is focused on higher priority issues at the moment. |
Would it please be possible to explicitly state in the docs which style specs are supported by feature-state operations? |
@songololo Thank you for the suggestion. It turns out that we already have the relevant infromation to update the docs. You can follow the docs update in https://github.com/mapbox/mapbox-gl-js-docs/pull/171 |
Native PR is moving at: mapbox/mapbox-gl-native#15872 |
Is there any chance this is going to get worked on? @jmalanen says the native PR is on hold? This is a critical feature for us. |
My team also has a deep shared interest in this piece of work. Any updates on when we might possibly see some traction on this? Or any ways we can help catalyze that? |
Any updates on this? |
I'm still stuck on a fork because of this. It's really frustrating. |
Hi @asheemmamoowala I've got some customers that aren't able to enjoy the benefits of v2 due to reliance on |
per #6289 (comment)
In the recent addition of data-driven styling support for
*-pattern
properties,feature-state
dependent expressions do not work. The removal of thepossibleOutputs
state (#6289 (comment)) makes it possible that the icons needed forfeature-state
related paint array updates may not be available in the tile'sImageAtlas
at update time.We haven't run into this before because the other data-driven properties that require glyph/icon assets are
layout
properties which don't supportfeature-state
expressions yet.I see a couple options on how to fix this:
CrossFadedCompositeBinder#updatePaintArrays
method that runs on the main thread when feature states are updated/changed and update the tile's ImageAtlasImageManager
, binder would have to send the new ImageAtlas to the tile somehowpossibleOutputs
state and require thatfeature-state
dependent expressions forcross-faded-data-driven
properties be contained as literalsfeature-state
expressions forcross-faded-data-driven
propertiesleaning towards the first option here, but curious if anyone has a different preference or another idea.
cc @asheemmamoowala @jfirebaugh
The text was updated successfully, but these errors were encountered: