maps-ktx / com.google.maps.android.ktx / com.google.android.gms.maps.MapView / awaitMap

awaitMap

suspend fun MapView.awaitMap(): GoogleMap

A suspending function that provides an instance of GoogleMap from this MapView. This is an alternative to MapView.getMapAsync by using coroutines to obtain the GoogleMap.

Return
the GoogleMap instance