StyleExpressionInputs

data class StyleExpressionInputs(val zoom: Double? = null, val colorRampParameter: Double? = null, val feature: String = "", val featureState: String = "", val globalState: String = "", val canonicalTileId: CanonicalTileId? = null, val availableImages: List<String> = emptyList())

The inputs that a style expression reads while it evaluates.

See mln_style_expression_inputs in the C API reference.

Constructors

Link copied to clipboard
constructor(zoom: Double? = null, colorRampParameter: Double? = null, feature: String = "", featureState: String = "", globalState: String = "", canonicalTileId: CanonicalTileId? = null, availableImages: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The IDs of the images that image treats as available.

Link copied to clipboard

The tile that holds the feature. within and distance need it to read the feature's geometry.

Link copied to clipboard

The value of heatmap-density, line-progress, and elevation.

Link copied to clipboard

The feature to evaluate against, as a GeoJSON feature, or empty for none.

Link copied to clipboard

The feature's state, as a JSON object, or empty for none.

Link copied to clipboard

The values that global-state reads, as a JSON object, or empty for none.

Link copied to clipboard
val zoom: Double?