Polygon Annotation Group
Composable function to add a PolygonAnnotationGroup to the Map. For convenience, if there's no need to hoist the polygonAnnotationGroupState, use PolygonAnnotationGroup(annotations, annotationConfig, onClick, init)
with trailing lambda instead.
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
List of PolygonAnnotationOptions to be added to the group.
Configuration for PolygonAnnotationGroup.
Callback to be invoked when one of the PolygonAnnotation in the cluster is clicked. The clicked PolygonAnnotation will be passed as parameter.
The state holder for PolygonAnnotationGroup properties.
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
List of PolygonAnnotationOptions to be added to the group.
Configuration for PolygonAnnotationGroup.
Callback to be invoked when one of the PolygonAnnotation in the cluster is clicked. The clicked PolygonAnnotation will be passed as parameter.
the lambda that will be applied to the remembered PolygonAnnotationGroupState.