Adds a label (Label) to the map.
The target object (Space, Door, or Coordinate) where the label should be added.
The text of the label.
Optional
options: TAddLabelOptionsOptional additional options for the label.
The created label, or undefined if creation failed.
Class used to add and remove a Label on the MapView.
Labels contain text and an image that are anchored to a specific point on the map. They automatically rotate and show and hide based on priority and zoom level. Use them to inform users about location names, points of interest and more!
Effective use of labels allows an app to convey additional information to the user. For example labels can be used to show room names, important points of interest, main entrances or any other piece of contextual information that is useful to the user.
This class is accessed using MapView.Labels.
Refer to the Labels Guide for more information and interactive examples.