MapViewState

The state of TomTomMap composable.

To create an instance use rememberMapViewState.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The CameraState of the map view.

Link copied to clipboard
Link copied to clipboard

The frame rate cap on the map renderer. It is useful for scenarios where the map is not fully visible to the user, and there is no need to render it with its full performance.

Link copied to clipboard

The GesturesState of the map view.

Link copied to clipboard

Sets map locale.

Link copied to clipboard

The LocationState of the map view.

Link copied to clipboard
Link copied to clipboard

Sets padding on the map view to determine space for the safe area. The safe area is the part of the viewport which is considered completely visible by the user i.e. not covered by UI components such as buttons or sliders.

Link copied to clipboard

The MapStyleState of the map view.

Functions

Link copied to clipboard
suspend fun getGeoPointForOffset(offset: Offset): GeoPoint?

Converts a offset on the map view to a position on the map. Returns a GeoPoint or null if the offset is not visible.

Link copied to clipboard
suspend fun getScreenOffsetForGeoPoint(geoPoint: GeoPoint): Offset?

Converts a geoPoint on the map into a Offset on the map. Returns the offset or null if the geoPoint is not visible.

Link copied to clipboard

Returns the currently visible region.

Link copied to clipboard
open override fun toString(): String