PolygonAnnotationGroup
@_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
public init(_ data: Data, id: KeyPath<Data.Element, ID>, content: @escaping (Data.Element) -> PolygonAnnotation) -
Undocumented
Declaration
Swift
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
public func fillAntialias(_ newValue: Bool) -> PolygonAnnotationGroup<Data, ID> -
Emission strength
Declaration
Swift
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
public func fillTranslate(_ newValue: [Double]) -> PolygonAnnotationGroup<Data, ID> -
Controls the frame of reference for
fill-translate.Declaration
Swift
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
public func layerPosition(_ newValue: LayerPosition) -> PolygonAnnotationGroup<Data, ID>
PolygonAnnotationGroup Structure Reference