Код: Выделить всё
MapboxMap(
modifier = Modifier.fillMaxSize(),
mapInitOptionsFactory = { context ->
MapInitOptions(
context = context,
styleUri = Style.STANDARD,
)
},
mapViewportState = mapViewportState,
compassSettings = compassSettings,
scaleBarSettings = scaleBarSetting,
gesturesSettings = mapBoxUiSettings,
attributionSettings = AttributionSettings {
enabled = false
},
) {
MapEffect(key1 = Unit) { mapView ->
mapView.mapboxMap.subscribeMapIdle(mapIdleCallback = {
Log.d("Tag", "Idle ${mapView.mapboxMap.cameraState.center}")
})
}
} // : MapboxMap
Подробнее здесь: https://stackoverflow.com/questions/783 ... ck-compose