CircleAnnotationGroup
@_spi(Experimental) public struct CircleAnnotationGroup<Data, ID> : PrimitiveMapContent where Data : RandomAccessCollection, ID : Hashable
Displays a group of circle 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) -> CircleAnnotation) -
Undocumented
Declaration
Swift
public init(_ data: Data, content: @escaping (Data.Element) -> CircleAnnotation) where ID == Data.Element.ID, Data.Element : Identifiable
-
Emission strength
Declaration
Swift
public func circleEmissiveStrength(_ newValue: Double) -> CircleAnnotationGroup<Data, ID> -
Orientation of circle when map is pitched.
Declaration
Swift
public func circlePitchAlignment(_ newValue: CirclePitchAlignment) -> CircleAnnotationGroup<Data, ID> -
Controls the scaling behavior of the circle when the map is pitched.
Declaration
Swift
public func circlePitchScale(_ newValue: CirclePitchScale) -> CircleAnnotationGroup<Data, ID> -
The geometry’s offset. Values are [x, y] where negatives indicate left and up, respectively.
Declaration
Swift
public func circleTranslate(_ newValue: [Double]) -> CircleAnnotationGroup<Data, ID> -
Controls the frame of reference for
circle-translate.Declaration
Swift
public func circleTranslateAnchor(_ newValue: CircleTranslateAnchor) -> CircleAnnotationGroup<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) -> CircleAnnotationGroup<Data, ID>
CircleAnnotationGroup Structure Reference