Class WebmapLabelExpression

java.lang.Object
com.esri.arcgisruntime.mapping.labeling.LabelExpression
com.esri.arcgisruntime.mapping.labeling.WebmapLabelExpression

public final class WebmapLabelExpression extends 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.

Since:
100.11.0
  • Constructor Details

    • WebmapLabelExpression

      public WebmapLabelExpression()
      Creates a label Webmap expression with an empty expression script.

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

      Since:
      100.11.0
    • WebmapLabelExpression

      public WebmapLabelExpression(String webmapExpression)
      Creates a label Webmap expression with a specific Webmap script.

      The expression is expected to be a complete, self-contained Webmap expression.

      Parameters:
      webmapExpression - the Webmap expression script string
      Throws:
      IllegalArgumentException - if webmapExpression is null
      Since:
      100.11.0