CircleAnnotationGroup

fun CircleAnnotationGroup(annotations: List<CircleAnnotationOptions>, annotationConfig: AnnotationConfig? = null, circleEmissiveStrength: Double? = null, circlePitchAlignment: CirclePitchAlignment? = null, circlePitchScale: CirclePitchScale? = null, circleTranslate: List<Double>? = null, circleTranslateAnchor: CircleTranslateAnchor? = null, onClick: (CircleAnnotation) -> Boolean = { false })

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 CircleAnnotationCluster.

circleEmissiveStrength

Controls the intensity of light emitted on the source features. The unit of circleEmissiveStrength is in intensity.

circlePitchAlignment

Orientation of circle when map is pitched.

circlePitchScale

Controls the scaling behavior of the circle when the map is pitched.

circleTranslate

The geometry's offset. Values are x, y where negatives indicate left and up, respectively. The unit of circleTranslate is in density-independent pixels.

circleTranslateAnchor

Controls the frame of reference for {@link PropertyFactory#circleTranslate}.

onClick

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