data-driven styling
Data-driven styling allows you to style spatial data based on its properties. For example, with data-driven styling you can change the radius of a circle at an intersection based on the number of pedestrians crossing the intersection, change the color of a state polygon based on the population of each state, or use conditional logic to create bilingual labels. Data-driven styling is available in the following products:
Related resources:
- Getting started: Data-driven styles
Mapbox Maps SDK for iOS
Mapbox Maps SDK for Android
Mapbox GL JS
- Example: Style circles with a data-driven property
- Tutorial: Get started with Mapbox GL JS expressions
Was this page helpful?