MapEffect

fun MapEffect(key1: Any?, block: suspend CoroutineScope.(GoogleMap) -> Unit)

A side-effect backed by a LaunchedEffect which will launch block and provide the underlying managed GoogleMap object into the composition's CoroutineContext. This effect will be re-launched when a different key1 is provided.

Note: This effect should be used with caution as the GoogleMap's properties is managed by the _root_ide_package_.com.google.maps.android.compose.GoogleMap() composable function. However, there are use cases when obtaining a raw reference to the map is desirable for extensibility (e.g. using the utility library for clustering).


fun MapEffect(key1: Any?, key2: Any?, block: suspend CoroutineScope.(GoogleMap) -> Unit)

A side-effect backed by a LaunchedEffect which will launch block and provide the underlying managed GoogleMap object into the composition's CoroutineContext. This effect will be re-launched when a different key1 or key2 is provided.

Note: This effect should be used with caution as the GoogleMap's properties is managed by the _root_ide_package_.com.google.maps.android.compose.GoogleMap() composable function. However, there are use cases when obtaining a raw reference to the map is desirable for extensibility (e.g. using the utility library for clustering).


fun MapEffect(key1: Any?, key2: Any?, key3: Any?, block: suspend CoroutineScope.(GoogleMap) -> Unit)

A side-effect backed by a LaunchedEffect which will launch block and provide the underlying managed GoogleMap object into the composition's CoroutineContext. This effect will be re-launched when a different key1, key2, or key3 is provided.

Note: This effect should be used with caution as the GoogleMap's properties is managed by the _root_ide_package_.com.google.maps.android.compose.GoogleMap() composable function. However, there are use cases when obtaining a raw reference to the map is desirable for extensibility (e.g. using the utility library for clustering).


fun MapEffect(vararg keys: Any?, block: suspend CoroutineScope.(GoogleMap) -> Unit)

A side-effect backed by a LaunchedEffect which will launch block and provide the underlying managed GoogleMap object into the composition's CoroutineContext. This effect will be re-launched with any different keys.

Note: This effect should be used with caution as the GoogleMap's properties is managed by the _root_ide_package_.com.google.maps.android.compose.GoogleMap() composable function. However, there are use cases when obtaining a raw reference to the map is desirable for extensibility (e.g. using the utility library for clustering).