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
imagetreats as available.final - canonicalTileId → CanonicalTileId?
-
The tile that holds the feature.
withinanddistanceneed it to read the feature's geometry.final - colorRampParameter → double?
-
The value of
heatmap-density,line-progress, andelevation.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-statereads, 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