maps-v3-ktx / com.google.maps.android.ktx / com.google.android.libraries.maps.MapView

Extensions for com.google.android.libraries.maps.MapView

awaitMap

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.

suspend fun MapView.awaitMap(): GoogleMap