All docsHelpGlossarydata-driven styling

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:


Property functions, which used to be the primary method of achieving data-driven styling in Mapbox GL JS and Mapbox's mobile SDKs, have been replaced with expressions. Expressions are flexible formulas that you can use for data-driven styling. Property functions still work but will eventually be deprecated.

Related resources:

Mapbox Maps SDK for iOS

Mapbox Maps SDK for Android

Mapbox GL JS