Labeling
The labeling profile allows the map author to write an expression that determines the label to show on the map for each feature. The script evaluates for each label as it is to be drawn. It is expected that the script returns a text value, comprising the label to be drawn.
Context
This profile was created for use in the following contexts:
- ArcGIS Maps SDK for JavaScript
- ArcGIS Pro
- ArcGIS Enterprise
- ArcGIS Online
- ArcGIS Maps SDKs for Native Apps
Profile variables
Variable Name | Type | Description |
---|---|---|
$feature | Feature | The feature whose label is to be drawn on the map. |
Function bundles
Return types
Example
Calculates the associated compass direction of the wind based on the wind direction in degrees. Returns the wind speed, with units, and the calculated compass direction.