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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close