Experimental
BlueControls for BlueDot positioning.
Controls for the map's camera.
Controls for the map's markers.
Controls for the map's labels.
Controls for the map's markers.
Controls for the map's models.
Controls for the map's navigation.
Controls for the outdoor map.
Controls for the map's paths.
Controls custom GeoJSON geometry on the map
Controls for the indoor map's style.
Controls for the stacked maps.
Creates a Coordinate on the map.
The latitude of the coordinate.
The longitude of the coordinate.
Optional
floor: FloorOptional floor information if applicable.
The created coordinate object.
Optional
floor: FloorExperimental
Optional
opts: TExpandOptionsRetrieves directions (Directions) from one navigable point (TNavigationTarget) to another on the map.
The starting point for navigation.
The destination point.
Optional
options: TGetDirectionsOptionsOptional parameters for getting directions.
Directions from the start to the destination point.
Retrieves directions (Directions) from one navigable point (TNavigationTarget) to multiple destination points on the map.
The starting point for navigation.
The destination points.
Optional
options: TGetDirectionsOptionsOptional parameters for getting directions.
Directions from the start to the destination points.
Retrieves the distance between two navigable points (TNavigationTarget) on the map.
The starting point.
The destination point.
The distance between the start and destination points in meters.
Determines if a given target is within the viewport.
This method checks if the specified target, such as a Space, MapObject, Label, Marker, or string identifier,
is currently within the visible area of the map viewport. Note that this method returns true
even if the
target is not visible (e.g., its visibility is set to false).
A boolean indicating whether the target is within the viewport.
Unsubscribe a function previously subscribed with on
An event name to which the provided function was previously subscribed.
A function that was previously passed to on. The function must have the same reference as the function that was subscribed.
Subscribe a function to an event.
An event name which, when fired, will call the provided function.
A callback that gets called when the corresponding event is fired. The callback will get passed an argument with a type that's one of event payloads.
Updates the state (TUpdateState) of a given target on the map.
The following table maps targets to states.
target | state |
---|---|
Label | TLabelState |
MapObject | TGeometryState |
Space | TGeometryState |
The target to update.
The new state to apply to the target.
Generic PubSub class implementing the Publish-Subscribe pattern for event handling.