PolygonAnnotationGroup

fun PolygonAnnotationGroup(annotations: List<PolygonAnnotationOptions>, annotationConfig: AnnotationConfig? = null, fillAntialias: Boolean? = null, fillEmissiveStrength: Double? = null, fillTranslate: List<Double>? = null, fillTranslateAnchor: FillTranslateAnchor? = null, onClick: (PolygonAnnotation) -> Boolean = { false })

Composable function to add a PolygonAnnotationGroup to the Map.

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

annotationConfig

Configuration for PolygonAnnotationCluster.

fillAntialias

Whether or not the fill should be antialiased.

fillEmissiveStrength

Controls the intensity of light emitted on the source features. This property works only with 3D light, i.e. when lights root property is defined. The unit of fillEmissiveStrength is in intensity.

fillTranslate

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

fillTranslateAnchor

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

onClick

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