CircleAnnotationGroup
@_documentation(visibility: public)
@_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
@_documentation(visibility: public) public init(_ data: Data, id: KeyPath<Data.Element, ID>, content: @escaping (Data.Element) -> CircleAnnotation)
-
Undocumented
Declaration
Swift
@_documentation(visibility: public) public init(_ data: Data, content: @escaping (Data.Element) -> CircleAnnotation) where ID == Data.Element.ID, Data.Element : Identifiable
-
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 circleEmissiveStrength(_ newValue: Double) -> CircleAnnotationGroup<Data, ID>
-
Orientation of circle when map is pitched.
Declaration
Swift
@_documentation(visibility: public) public func circlePitchAlignment(_ newValue: CirclePitchAlignment) -> CircleAnnotationGroup<Data, ID>
-
Controls the scaling behavior of the circle when the map is pitched.
Declaration
Swift
@_documentation(visibility: public) 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
@_documentation(visibility: public) public func circleTranslate(_ newValue: [Double]) -> CircleAnnotationGroup<Data, ID>
-
Controls the frame of reference for
circle-translate
.Declaration
Swift
@_documentation(visibility: public) 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
@_documentation(visibility: public) public func layerPosition(_ newValue: LayerPosition) -> CircleAnnotationGroup<Data, ID>