Controls for the map's labels.
Controls for the map's markers.
Controls for the map's navigation.
Returns a Maplibre map for advanced usage.
Controls for the map's paths.
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: FloorRetrieves 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.
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.
Controls for the map's camera.