ArcadeLabelExpression class final
An expression script using the Arcade language.
The Arcade label expression property must contain a syntactically correct Arcade script expression.
An example expression that combines text with a field value is
"State: " + $feature.State_Name
Note that quotes are needed around the literal text. See ArcGIS Arcade for full documentation on the Arcade scripting language and its function library.
Any Arcade functions allowed for the Labeling profile can be used in a label arcade expression. Other functions (for example, FeatureSet functions) are potentially too slow to be used in a dynamic label evaluation. Warning: If the expression attempts to use attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.
- Inheritance
-
- Object
- LabelExpression
- ArcadeLabelExpression
Constructors
- ArcadeLabelExpression({String arcadeString = ''})
-
Creates a label arcade expression object with a specified Arcade
expression script string.
factory
- ArcadeLabelExpression.withArcadeExpression(ArcadeExpression arcadeExpression)
-
Creates a label arcade expression object using the
ArcadeExpression.expression.
factory
Properties
- expression ↔ String
-
The label expression script string.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → LabelExpression -
Clones the LabelExpression.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited