The alias profile allows the map author to write an expression to evaluate a numeric value and return a text alias representing that value.
When the alias is needed, the script will be evaluated. It will be passed the value for which an alias is desired. It is expected that the script returns a text value, comprising the alias to be shown.
Context
The following products implement this profile:
- ArcGIS Pro
- ArcGIS Enterprise
Spatial reference
The spatial reference of the map in which the expression executes determines the execution context's spatial reference.
Time zone
The time zone of the map in which the expression executes determines the execution context's default time zone.
Profile Variables
Variable Name | Type | Description |
---|---|---|
$value | Number | The numeric value for which a text alias is desired. |
Function Bundles
Return types
Example
Calculates an alias string for building floors stored as integers configured for a range selector.
if ($value < 0){
return "Basement " + Abs($value);
}
else if ($value == 0){
return "Ground Floor";
}
else {
return "Floor " + $value;
}