Label component.
A Label is a 2D text label anchored to a position on the map.
<Label target={mapData.getByType('space')[0]} text={"Hello, world!"} /> Copy
<Label target={mapData.getByType('space')[0]} text={"Hello, world!"} />
Readonly
Optional
Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.
Legacy React Docs
Ignored by React.
Only kept in types for backwards compatibility. Will be removed in a future major release.
Label component.
A Label is a 2D text label anchored to a position on the map.
Example