Expression

data class Expression(val expression: Expression) : StyleValue<Nothing>

A Mapbox-compatible expression tree (e.g. ["get", "mag"], ["interpolate", ...]).

Constructors

Link copied to clipboard
constructor(expression: Expression)

Properties

Link copied to clipboard

The Constant.value when this is a Constant; otherwise null.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

JSON-ready representation: constants pass through makeJSONObject, expressions through com.xweather.mapsgl.style.Expression.toJSONObject. Useful for debugging or custom style serialization.