StyleExpressionInputs class final

The inputs that a style expression reads while it evaluates.

See mln_style_expression_inputs in the C API reference.

Constructors

StyleExpressionInputs({double? zoom, double? colorRampParameter, Object? feature, Object? featureState, Object? globalState, CanonicalTileId? canonicalTileId, List<String> availableImages = const []})

Properties

availableImages → List<String>
The IDs of the images that image treats as available.
final
canonicalTileId → CanonicalTileId?
The tile that holds the feature. within and distance need it to read the feature's geometry.
final
colorRampParameter → double?
The value of heatmap-density, line-progress, and elevation.
final
feature → Object?
The feature to evaluate against, as a GeoJSON feature, or empty for none.
final
featureState → Object?
The feature's state, as a JSON object, or empty for none.
final
globalState → Object?
The values that global-state reads, as a JSON object, or empty for none.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
zoom → double?
final

Methods

copyWith({double? zoom, double? colorRampParameter, Object? feature = _unchanged, Object? featureState = _unchanged, Object? globalState = _unchanged, CanonicalTileId? canonicalTileId, List<String>? availableImages}) → StyleExpressionInputs
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited