Since version: 1.7
The measure visualization profile allows the map author to write an expression that evaluates to a value used to drive the visualization of measure values along a line. This is used in the context of linear referencing hatching of m-aware lines. When each measure value is drawn, the measure value is interpolated for the marker location and passed into the script. It is expected that the script returns the desired value to draw via a text graphic in a marker symbol.
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 |
---|---|---|
$measure | Number | The interpolated M-value for the marker location. |
$feature | Feature | The feature which is to be drawn on the map. |
$view.scale | Number | Returns the scale of the map at the time the expression evaluates. |
Function bundles
Return types
Example
Calculates a string for measure display that has a prefix of the route name concatenated with the measure in kilometers and adds a kilometer unit abbreviation.
$feature.RouteName +"-"+ $measure/1000 + " km"