An expression defines a formula for computing the value of any layout property, paint property, or filter within a map style. Expressions allow you to style data with multiple feature properties at once, apply conditional logic, and manipulate data with mathematical, logical, and string operators. This allows for sophisticated runtime styling.

Take a look at the Mapbox Style Specification or the Mapbox iOS SDK expressions reference for more information on using expressions in your map styles.

Was this page helpful?