PointAnnotationGroup

fun PointAnnotationGroup(annotations: List<PointAnnotationOptions>, annotationConfig: AnnotationConfig? = null, onClick: (PointAnnotation) -> Boolean = { false }, pointAnnotationGroupState: PointAnnotationGroupState = remember { PointAnnotationGroupState() })

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

The PointAnnotationGroup is more performant than adding multiple PointAnnotation individually, because the PointAnnotationGroup 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 PointAnnotationOptions to be added to the group.

annotationConfig

Configuration for PointAnnotationGroup.

onClick

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

pointAnnotationGroupState

The state holder for PointAnnotationGroup properties.


inline fun PointAnnotationGroup(annotations: List<PointAnnotationOptions>, annotationConfig: AnnotationConfig? = null, noinline onClick: (PointAnnotation) -> Boolean = { false }, crossinline init: PointAnnotationGroupState.() -> Unit)

Composable function to add a PointAnnotationGroup to the Map.

The PointAnnotationGroup is more performant than adding multiple PointAnnotation individually, because the PointAnnotationGroup 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 PointAnnotationOptions to be added to the group.

annotationConfig

Configuration for PointAnnotationGroup.

onClick

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

init

the lambda that will be applied to the remembered PointAnnotationGroupState.