PolygonAnnotationGroup
@_documentation(visibility: public)
@_spi(Experimental)
public struct PolygonAnnotationGroup<Data, ID> : PrimitiveMapContent where Data : RandomAccessCollection, ID : Hashable
Displays a group of polygon annotations.
Always prefer to use annotation group over individual annotation if more than one annotation of the same type is displayed. The annotation group is usually more performant, since only one underlying layer is used to draw multiple annotations.
Annotation group allows to configure group-related options, such as clustering (only for point annotations) and others.
-
Undocumented
Declaration
Swift
@_documentation(visibility: public) public init(_ data: Data, id: KeyPath<Data.Element, ID>, content: @escaping (Data.Element) -> PolygonAnnotation)
-
Undocumented
Declaration
Swift
@_documentation(visibility: public) public init(_ data: Data, content: @escaping (Data.Element) -> PolygonAnnotation) where ID == Data.Element.ID, Data.Element : Identifiable
-
Whether or not the fill should be antialiased.
Declaration
Swift
@_documentation(visibility: public) public func fillAntialias(_ newValue: Bool) -> PolygonAnnotationGroup<Data, ID>
-
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.Declaration
Swift
@_documentation(visibility: public) public func fillEmissiveStrength(_ newValue: Double) -> PolygonAnnotationGroup<Data, ID>
-
The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.
Declaration
Swift
@_documentation(visibility: public) public func fillTranslate(_ newValue: [Double]) -> PolygonAnnotationGroup<Data, ID>
-
Controls the frame of reference for
fill-translate
.Declaration
Swift
@_documentation(visibility: public) public func fillTranslateAnchor(_ newValue: FillTranslateAnchor) -> PolygonAnnotationGroup<Data, ID>
-
Defines relative position of the layers drawing the annotations managed by the current group.
Note
Layer position isn’t updatable. Only the first value passed to this function set will take effect.Declaration
Swift
@_documentation(visibility: public) public func layerPosition(_ newValue: LayerPosition) -> PolygonAnnotationGroup<Data, ID>