Skip To Content ArcGIS for Developers Sign In Dashboard

LabelDefinition QML Type

Labeling information about a sublayer of a map service or feature service. More...

Import Statement: import Esri.ArcGISRuntime 100.6
Since: Esri.ArcGISRuntime 100.1
Inherits:

Object

Properties

Detailed Description

LabelDefinitions can only be created from JSON currently. The JSON required follows the ArcGIS REST API specification for the various labeling objects.

An example of JSON that can be used for setting a LabelDefinition is:

{
   "allowOverrun":false,
   "deconflictionStrategy":"static",
   "labelExpressionInfo":{
      "expression":"$feature.state_name"
   },
   "labelPlacement":"esriServerLinePlacementAboveAlong",
   "lineConnection":"minimizeLabels",
   "maxScale":0,
   "minScale":0,
   "multiPart":"labelPerPart",
   "priority":-1,
   "removeDuplicates":"none",
   "removeDuplicatesDistance":0,
   "repeatLabel":true,
   "repeatLabelDistance":216,
   "stackAlignment":"textSymbol",
   "stackBreakPosition":"after",
   "stackRowLength":-1,
   "symbol":{
      "angle":0,
      "backgroundColor":[0,0,0,0],
      "borderLineColor":[0,0,0,0],
      "borderLineSize":0,
      "color":[0,0,255,255],
      "font":{
       "size":11.25
      },
      "haloColor":[0,0,0,0],
      "haloSize":0,
      "kerning":false,
      "type":"esriTS",
      "xoffset":0,
      "yoffset":0
   },
   "useCodedValues":false
}

See also JsonSerializable.

Property Documentation

json : jsobject

JSON that can be used to instantiate the LabelDefinition.


unknownJson : jsobject

Returns the unknown JSON from the source JSON.

See also JsonSerializable.


unsupportedJson : jsobject

Returns the unsupported data from the source JSON.

See also JsonSerializable.



Feedback on this topic?