Step

class Step<T>(val input: MvtExpression<*>, val base: MvtExpression<T>, val stops: List<Pair<Double, MvtExpression<T>>>) : MvtExpression<T>

["step", input, base, stop1, val1, stop2, val2, …] — piecewise-constant. Returns base when input < stops[0]; otherwise the value of the largest stop ≤ input.

Constructors

Link copied to clipboard
constructor(input: MvtExpression<*>, base: MvtExpression<T>, stops: List<Pair<Double, MvtExpression<T>>>)

Properties

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

Functions

Link copied to clipboard
open override fun evaluate(ctx: MvtExpression.EvalContext): T?
Link copied to clipboard

True when this expression (or any sub-expression) reads per-feature data — i.e. its result can differ between two features in the same tile at the same zoom. That means a reference to a feature property (Get / Has), the feature's dynamic state (FeatureState), its geometry type (GeometryType), or its line-progress parameter (LineProgress).