Map View
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.
map Controller
The controller for managing the MapView.
on Tap
The callback function to be invoked when the MapView is tapped. Default is an empty lambda.
on Avatar Tap
The callback function to be invoked when an avatar on the MapView is tapped. Default is an empty lambda.
on View Point Changed
The callback function to be invoked when the viewpoint of the MapView changes. Default is an empty lambda.
on Finish Loading
The callback function to be invoked when the MapView finishes loading. Default is an empty lambda.