Symbol layer for text and font definitions.
Referenced by: LabelSymbol3D, PointSymbol3D
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:
|
| lineHeight | Multiplier to scale the vertical distance between the baselines of text with multiple lines. |
| material | The material used to shade the geometry. |
| occludedVisibility | Defines when icon and label symbols are rendered if they are occluded by other objects in the scene. |
| 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:
|
Example
{ "size": 12, "type": "Text", "material": { "color": [ 255, 255, 0 ] }, "font": { "family": "Arial", "weight": "bold" }, "lineHeight": 1.2, "horizontalAlignment": "left", "verticalAlignment": "top"}