Since version: 1.28
The Feature Display Title profile allows the map author to write an expression that returns the preferred title to display for a feature (or row) in an application's UI that uniquely represents the feature. This is displayed in lieu of a layer's display field. The script evaluates for each row in the table. It is expected that the script returns a text value, comprising the title to display.
Context
The following product implements this profile:
Spatial reference
This profile does not include geometry functions and therefore does not need to define a spatial reference for the execution context.
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 |
---|---|---|
$feature | Feature | The feature, or row, for which to display a title in the UI. |
Function bundles
Return types
Example
Returns the county name and state from a table containing data for various counties.
var c = $feature.County;
var s = $feature.State;
return Concatenate([c, s], " County, ");
// Returns "Los Angeles County, California"
// for a table row representing Los Angeles County