MapView

fun MapView(map: Map, modifier: Modifier = Modifier, mapController: MapController, onTap: (Feature?) -> Unit = { _ -> }, onAvatarTap: (String?) -> Unit = { _ ->}, onViewPointChanged: () -> Unit = {}, onFinishLoading: () -> Unit = {})

Composable function that creates a MapView and sets the map and controller.

Parameters

map

The map to be displayed on the MapView.

modifier

The modifier for styling or positioning the MapView. Default is Modifier.

mapController

The controller for managing the MapView.

onTap

The callback function to be invoked when the MapView is tapped. Default is an empty lambda.

onAvatarTap

The callback function to be invoked when an avatar on the MapView is tapped. Default is an empty lambda.

onViewPointChanged

The callback function to be invoked when the viewpoint of the MapView changes. Default is an empty lambda.

onFinishLoading

The callback function to be invoked when the MapView finishes loading. Default is an empty lambda.