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

Referenced by: labelingInfo

Properties

PropertyDetails
calloutCallout configuration for a symbol.
symbolLayers[]A Collection of Symbol3DLayer objects used to visualize the graphic or feature.
Array of items of the following types:
typeSpecifies the type of symbol used.
Valid value of this property LabelSymbol3D
verticalOffsetShifts 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
}
}