Creates a 3D text label for a given space.
The target space to label.
Optionalcontent: stringThe content of the label. If not provided, target.name will be used.
Configuration options for the text label creation (see AddText3DOptions).
A Text3DView instance representing the created label, or undefined if creation failed.
const label = mapView.Text3D.label(space, "Conference Room A", { fontSize: 12 });
const label = mapView.Text3D.label(space); // Uses space.name
const label = mapView.Text3D.label(space, "VIP Room", {
fontSize: 16,
color: 'gold',
backgroundColor: 'rgba(0, 0, 0, 0.8)'
});
Creates polygon labels for all spaces.
Configuration options for text label creation (see AddText3DOptions).
An array of Text3DView instances representing the created labels. If a space is already labeled, the existing Text3D instance will be returned.
Removes one or more Text3D labels from the map.
Can be either:
Removes one or more Text3D labels from the map.
Can be either:
Text3D in Mappedin JS
Text3D creates three-dimensional text labels that are rendered directly in the 3D scene. These labels are perfect for displaying space names, room numbers, or any text that needs to be visible from any angle in the 3D environment.
Features
Example Usage
Performance Considerations
labelAll()for better performance when creating multiple labels.Advanced
labelAll()with options to apply consistent styling to all labels.This class is accessed using MapView.Text3D.