Код: Выделить всё
@Composable
fun MapMarkers(
mapViewModel: MapVM
) {
val mapDataList = mapViewModel.mapData.collectAsLazyPagingItems()
val markers = mapDataList.itemSnapshotList.items
markers.forEach {
MapMarker(
it.data, it.position
)
}
}
Подробнее здесь: https://stackoverflow.com/questions/790 ... data-in-ui
Мобильная версия