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
Consider I am having a GeoJson Layer with 5 features, I am able to set a style to the total layer only, I need to control the style for each feature of that layer dynamically not by a GeoJson Property while adding the layer, should be programmatic(for example change the colour of the 1st feature of the GeoJson Layer in a click event).
The text was updated successfully, but these errors were encountered:
Create a layer per feature. Use filters to only draw one feature per layer. Style each layer independently.
Use data-driven styling to style features based on their properties https://www.mapbox.com/blog/data-driven-styling. This feature is still rolling out and only supported for certain style properties. See the style spec for compatibility information.
Consider I am having a GeoJson Layer with 5 features, I am able to set a style to the total layer only, I need to control the style for each feature of that layer dynamically not by a GeoJson Property while adding the layer, should be programmatic(for example change the colour of the 1st feature of the GeoJson Layer in a click event).
The text was updated successfully, but these errors were encountered: