Measure Visualization

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:

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 NameTypeDescription
$measureNumberThe interpolated M-value for the marker location.
$featureFeatureThe feature which is to be drawn on the map.
$view.scaleNumberReturns the scale of the map at the time the expression evaluates.

Function bundles

Core | Geometry

Return types

Text | Number

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.

Use dark colors for code blocksCopy
1
$feature.RouteName +"-"+ $measure/1000 + " km"

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close