fix(core): repaint feature-state-driven symbol paint properties (#4445)

This commit is contained in:
Brandon Roeder
2026-08-04 11:17:53 -05:00
committed by GitHub
parent 5e6fd6bb78
commit a34723ff4a
6 changed files with 122 additions and 0 deletions

View File

@@ -35,3 +35,5 @@ Tapping a state toggles its `selected` feature-state key and shows a toast:
- Use `getFeatureState()` on the source to inspect the current state for one feature.
- Use `removeFeatureState()` or `resetFeatureStates()` on the source to clear state.
- For `VectorSource`, all feature-state methods require a `sourceLayerId` parameter.
- Feature-state expressions update paint properties, including symbol paint properties such as `icon-color`, `icon-opacity`, `text-color`, and `text-opacity`.
- Feature-state expressions are not supported in layout properties such as `icon-image` or `text-field`.