rememberMarkerState

fun rememberMarkerState(key: String? = null, position: LatLng = LatLng(0.0, 0.0)): MarkerState

Uses rememberSaveable to retain MarkerState.position across configuration changes, for simple use cases.

Other use cases may be better served syncing MarkerState.position with a data model.

This cannot be used to preserve info window visibility across configuration changes.