CircleAnnotationGroup

fun CircleAnnotationGroup(annotations: List<CircleAnnotationOptions>, annotationConfig: AnnotationConfig? = null, onClick: (CircleAnnotation) -> Boolean = { false }, circleAnnotationGroupState: CircleAnnotationGroupState = remember { CircleAnnotationGroupState() })

Composable function to add a CircleAnnotationGroup to the Map. For convenience, if there's no need to hoist the circleAnnotationGroupState, use CircleAnnotationGroup(annotations, annotationConfig, onClick, init) with trailing lambda instead.

The CircleAnnotationGroup is more performant than adding multiple CircleAnnotation individually, because the CircleAnnotationGroup is added to the map as a single layer.

PointAnnotationGroup and CircleAnnotationGroup can also be clustered based on the configuration, see AnnotationConfig.annotationSourceOptions and ClusterOptions for more details.

Parameters

annotations

List of CircleAnnotationOptions to be added to the group.

annotationConfig

Configuration for CircleAnnotationGroup.

onClick

Callback to be invoked when one of the CircleAnnotation in the cluster is clicked. The clicked CircleAnnotation will be passed as parameter.

circleAnnotationGroupState

The state holder for CircleAnnotationGroup properties.


inline fun CircleAnnotationGroup(annotations: List<CircleAnnotationOptions>, annotationConfig: AnnotationConfig? = null, noinline onClick: (CircleAnnotation) -> Boolean = { false }, crossinline init: CircleAnnotationGroupState.() -> Unit)

Composable function to add a CircleAnnotationGroup to the Map.

The CircleAnnotationGroup is more performant than adding multiple CircleAnnotation individually, because the CircleAnnotationGroup is added to the map as a single layer.

PointAnnotationGroup and CircleAnnotationGroup can also be clustered based on the configuration, see AnnotationConfig.annotationSourceOptions and ClusterOptions for more details.

Parameters

annotations

List of CircleAnnotationOptions to be added to the group.

annotationConfig

Configuration for CircleAnnotationGroup.

onClick

Callback to be invoked when one of the CircleAnnotation in the cluster is clicked. The clicked CircleAnnotation will be passed as parameter.

init

the lambda that will be applied to the remembered CircleAnnotationGroupState.