MapObjectCollection
fun MapObjectCollection(state: MapObjectCollectionState = rememberMapObjectCollectionState(), visible: Boolean = true, zIndex: Float = 0.0f, userData: Any? = null, onTap: (Point) -> Boolean? = null, content: @Composable () -> Unit)
Groups the map objects of content into a nested MapObjectCollection.
The collection is a map object itself, so hiding it hides everything inside it at once, and its zIndex applies to the whole group. Removing the composable from the composition removes the whole group from the map.