spatial-monorepo / 3d/src / Text3DLayerProps
Interface: Text3DLayerProps
Defined in: packages/3d/src/Text3DLayer.tsx:17
Properties
color?
optionalcolor?: [number,number,number]
Defined in: packages/3d/src/Text3DLayer.tsx:27
RGB colour 0–255 tuple. Default [255, 255, 255].
data
data:
Text3DItem[]
Defined in: packages/3d/src/Text3DLayer.tsx:23
Array of text label descriptors.
extrudeDepth?
optionalextrudeDepth?:number
Defined in: packages/3d/src/Text3DLayer.tsx:29
Extrude depth in metres. Default 0.1.
fontSize?
optionalfontSize?:number
Defined in: packages/3d/src/Text3DLayer.tsx:25
Font size in metres. Default 1.
id?
optionalid?:string
Defined in: packages/3d/src/Text3DLayer.tsx:19
Stable id for the MapLibre layer. Defaults to a generated uuid.
map
map:
Map$1|null|undefined
Defined in: packages/3d/src/Text3DLayer.tsx:21
MapLibre map instance to attach the custom layer to. Pass null/undefined until the map is loaded (e.g. from useMap()).
