WebmapLabelExpression

class WebmapLabelExpression : LabelExpression

The label Webmap expression expects to hold a legal, Webmap script and to be read and evaluated by a Webmap expression interpreter. An example expression that combines text with a field value is

State {State_Name}

Note that quotes are not needed around the literal text. Warning: If expression using attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.

Constructors

Link copied to clipboard
fun WebmapLabelExpression()

Create a label Webmap expression with an empty expression script. An empty script is a legal Webmap expression that will evaluate to an empty string.

Link copied to clipboard
fun WebmapLabelExpression(webmapExpression: String)

Create a label Webmap expression with a specific Webmap script. The expression is expected to be a complete, self-contained Webmap expression.

Properties

Link copied to clipboard
var expression: String

The label expression script string. The expression is expected to be a complete, self-contained label expression in the language specified by the label expression subclass object. Warning: If the expression attempts to use attributes which don't exist then no label will be produced. This is distinct from the attribute existing but having a null or empty value, which can form part of the produced text label.