OptionalcolorOptionalcontentContent of the text3d
OptionalfillOpacity of the text fill, independent of stroke and outline opacity. Set to 0 to show only stroke/outline. Accepts values between 0 and 1.
OptionalflipAttempt to keep the Text3D facing the camera as much as possible
OptionalfontURL to a custom font file (.ttf, .otf, .woff). Falls back to Roboto if undefined.
OptionalfontThe size of the text in meters.
This represents the height of a line of text (similar to CSS font-size). The width of individual characters and the overall text block will scale proportionally based on the font's aspect ratio and the text content.
For geometry labels: Will be automatically adjusted if the text exceeds the text area bounds.
OptionalhoverColor to display when the associated geometry is hovered.
Only applies to geometry labels. When a geometry with a label is hovered,
the text color changes from color to hoverColor.
For point-based text: This property is ignored (text does not respond to hover events).
Falls back to global hover color if undefined.
OptionalmarginPadding between the text and its bounding box, in meters. Can be specified as either:
Only applies to geometry labels. Ignored for point-based text.
OptionalmaxMaximum height constraint for the text area in meters.
Only applies to geometry labels. Overrides default text field constraints when set. Ignored for point-based text.
OptionalmaxMaximum width constraint for the text area in meters.
Only applies to geometry labels. Overrides default text field constraints when set. Ignored for point-based text.
OptionaloutlineBlur radius for the text outline. Can be a number in pixels or a string with units.
OptionaloutlineColor of the text outline. Accepts any CSS color string.
OptionaloutlineHorizontal offset of the outline effect from the text, in pixels.
OptionaloutlineVertical offset of the outline effect from the text, in pixels.
OptionaloutlineOpacity of the text outline. Accepts values between 0 and 1.
OptionaloutlineWidth of the text outline effect in pixels.
Optional ReadonlypositionThe position of the Text3D in [lon, lat, altitude]
Optional ReadonlyrotationRotation of the text in degrees clockwise from North.
OptionalstrokeColor of the text stroke when strokeWidth > 0. Accepts any CSS color string.
OptionalstrokeOpacity of the text stroke when strokeWidth > 0.
OptionalstrokeWidth of the inner stroke of each text glyph.
OptionalvisibleWhether the Text3D is visible
The color of the text.
For geometry labels: Will change to
hoverColorwhen the associated geometry is hovered.Accepts any CSS color string.