maps-v3-ktx / com.google.maps.android.ktx / com.google.android.libraries.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