Glossary

data-driven styling

Data-driven styling allows you to style your 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 Mapbox Studio, Mapbox GL JS, the Mapbox Maps SDK for iOS, and the Mapbox Maps SDK for Android.

help
Property functions versus property expressions

We recently changed the way data-driven styling works — from property functions to property expressions. Property expressions help you achieve similar effects as property functions, with much more flexibility and functionality. Property expressions were introduced in Mapbox GL JS v0.41.0. While property functions are available, they will ultimately be deprecated and replaced by property expressions. Expressions are compatible with:

  • Mapbox GL JS 0.41.0 and above.
  • Mapbox Android SDK 6.0.0 and above.
  • Mapbox iOS SDK 4.0.0 and above.