TextSymbol3DLayer

Symbol layer for text and font definitions.

Referenced by: LabelSymbol3D, PointSymbol3D, PolygonSymbol3D

Properties

Property Details
background Text background definition.
enable
font Font used for text symbols.
halo Halo definition.
horizontalAlignment One of the following string values representing the horizontal alignment of the text.
Valid values:
  • center
  • left
  • right
lineHeight Multiplier to scale the vertical distance between the baselines of text with multiple lines.
material The material used to shade the geometry.
size Font size in points, positive only
text Text content in the label. Typically this property is not set, as text content is read from labeling field.
type Specifies the type of symbol used.
Valid value of this property Text
verticalAlignment One 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"
}

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