Symbol layer for text and font definitions.

Referenced by: LabelSymbol3D, PointSymbol3D

Properties

PropertyDetails
backgroundText background definition.
enable
fontFont used for text symbols.
haloHalo definition.
horizontalAlignmentOne of the following string values representing the horizontal alignment of the text.
Valid values:
  • center
  • left
  • right
lineHeightMultiplier to scale the vertical distance between the baselines of text with multiple lines.
materialThe material used to shade the geometry.
occludedVisibilityDefines when icon and label symbols are rendered if they are occluded by other objects in the scene.
sizeFont size in points, positive only
textText content in the label. Typically this property is not set, as text content is read from labeling field.
typeSpecifies the type of symbol used.
Valid value of this property Text
verticalAlignmentOne of the following string values representing the vertical alignment of the text.
Valid values:
  • baseline
  • bottom
  • middle
  • top

Example

{
"size": 12,
"type": "Text",
"material": {
"color": [
255,
255,
0
]
},
"font": {
"family": "Arial",
"weight": "bold"
},
"lineHeight": 1.2,
"horizontalAlignment": "left",
"verticalAlignment": "top"
}