LabelSymbol3D

LabelSymbol3D is used to render labels for features from a FeatureLayer in a 3D SceneView.

Referenced by: labelingInfo

Properties

Property Details
callout Callout configuration for a symbol.
symbolLayers[] A Collection of Symbol3DLayer objects used to visualize the graphic or feature.
Array of items of the following types:
type Specifies the type of symbol used.
Valid value of this property LabelSymbol3D
verticalOffset Shifts the symbol along the vertical world axis by a given length.

Label Symbol 3D Example

{
  "type": "LabelSymbol3D",
  "symbolLayers": [
    {
      "size": 12,
      "type": "Text",
      "material": {
        "color": [
          255,
          255,
          0
        ]
      }
    }
  ]
}

Label Symbol 3D with verticalOffset and leader line callout Example

{
  "type": "LabelSymbol3D",
  "symbolLayers": [
    {
      "size": 12,
      "type": "Text",
      "material": {
        "color": [
          255,
          255,
          0
        ]
      }
    }
  ],
  "callout": {
    "type": "line",
    "color": [
      255,
      255,
      255
    ],
    "size": 0.75,
    "border": {
      "color": [
        50,
        50,
        50
      ]
    }
  },
  "verticalOffset": {
    "screenLength": 100,
    "maxWorldLength": 600,
    "minWorldLength": 10
  }
}

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