Skip to main content

ViewerLabel

wemap-sdk-js


Interface: ViewerLabel

Text anchored in the real world, drawn over the panorama. See WemapViewer.setLabels.

Properties​

color?​

optional color?: string

Text colour (CSS). Defaults to a near-black ink.


coordinates​

coordinates: Coordinates

Where the text is centred. Needs an altitude, in the same reference as the graph nodes'.


haloColor?​

optional haloColor?: string

Halo colour around the text (CSS). Defaults to white.


text​

text: string