Feature Display Title

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 NameTypeDescription
$featureFeatureThe feature, or row, for which to display a title in the UI.

Function bundles

Core

Return types

Text

Example

Returns the county name and state from a table containing data for various counties.

Use dark colors for code blocksCopy
1
2
3
4
5
6
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

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