Interface UpdatableText3DState

At this moment updating text margin is not supported Margin and content update are not handled at the moment.

interface UpdatableText3DState {
    color?: string;
    fillOpacity?: number;
    flipToFaceCamera?: boolean;
    font?: string;
    fontSize?: number;
    hoverColor?: string;
    maxHeight?: number;
    maxWidth?: number;
    outlineBlur?: string | number;
    outlineColor?: string;
    outlineOffsetX?: number;
    outlineOffsetY?: number;
    outlineOpacity?: number;
    outlineWidth?: number;
    strokeColor?: string;
    strokeOpacity?: number;
    strokeWidth?: number;
    visible?: boolean;
}

Properties

color?: string

The color of the text. Will change to hoverColor when the associated polygon is hovered. Accepts any CSS color string.

'black'
fillOpacity?: number

Opacity of the text fill, independent of stroke and outline opacity. Set to 0 to show only stroke/outline. Accepts values between 0 and 1.

flipToFaceCamera?: boolean

Attempt to keep the Text3D facing the camera as much as possible

font?: string

URL to a custom font file (.ttf, .otf, .woff). Falls back to Roboto if undefined.

fontSize?: number

The size of the text in meters. Will be automatically adjusted if it exceeds the text area bounds.

hoverColor?: string

Color to display when text is hovered. Falls back to global hover color if undefined.

maxHeight?: number

Maximum height constraint for the text area in meters. Overrides default text field constraints when set.

maxWidth?: number

Maximum width constraint for the text area in meters. Overrides default text field constraints when set.

outlineBlur?: string | number

Blur radius for the text outline. Can be a number in pixels or a string with units.

outlineColor?: string

Color of the text outline. Accepts any CSS color string.

'black'
outlineOffsetX?: number

Horizontal offset of the outline effect from the text, in pixels.

outlineOffsetY?: number

Vertical offset of the outline effect from the text, in pixels.

outlineOpacity?: number

Opacity of the text outline. Accepts values between 0 and 1.

1
outlineWidth?: number

Width of the text outline effect in pixels.

strokeColor?: string

Color of the text stroke when strokeWidth > 0. Accepts any CSS color string.

'black'
strokeOpacity?: number

Opacity of the text stroke when strokeWidth > 0.

1
strokeWidth?: number

Width of the inner stroke of each text glyph.

0
visible?: boolean

Whether the Text3D is visible

MMNEPVFCICPMFPCPTTAAATR