TomTomMap
A compose container for displaying a map.
See MapSemanticProperties and MapSemanticActions for custom SemanticsProperties and SemanticsActions to facilitate testing.
Important: Use named parameters to avoid ambiguous method calls due to API changes.
Parameters
The map display infrastructure.
The state of the map view which can be hoisted. The state can be used to change the map configuration, control the camera, and access map elements. When multiple TomTomMap composables are used within the same androidx.lifecycle.ViewModelStoreOwner scope (for example, in the same Activity/Fragment), the MapViewState.key must be provided and unique per map to ensure each map gets its own internal state and resources.
Modifier to be applied to the TomTomMap.
A lambda invoked when the map is long-pressed. Receives the GeoPoint of the event.
A lambda invoked when the map is clicked. Receives the GeoPoint of the event.
A lambda invoked when the map is double-clicked. Receives the GeoPoint of the event.
A lambda that is invoked when the map loaded successfully.
A lambda invoked whenever the map is panned.
Composable content to be displayed on top of the map (e.g., compass, current location button).