CircleAnnotation

public struct CircleAnnotation : Annotation

Undocumented

  • id

    Identifier for this annotation

    Declaration

    Swift

    public let id: String
  • The feature backing this annotation

    Declaration

    Swift

    public internal(set) var feature: Turf.Feature { get }
  • Properties associated with the annotation

    Declaration

    Swift

    public var userInfo: [String : Any]? { get set }
  • Create a circle annotation with a Turf.Point and an optional identifier.

    Declaration

    Swift

    public init(id: String = UUID().uuidString, point: Turf.Point)
  • Create a circle annotation with a center coordinate and an optional identifier

    Declaration

    Swift

    public init(id: String = UUID().uuidString, centerCoordinate: CLLocationCoordinate2D)

    Parameters

    id

    Optional identifier for this annotation

    coordinate

    Coordinate where this circle annotation should be centered

  • Sorts features in ascending order based on this value. Features with a higher sort key will appear above features with a lower sort key.

    Declaration

    Swift

    public var circleSortKey: Double? { get set }
  • Amount to blur the circle. 1 blurs the circle such that only the centerpoint is full opacity.

    Declaration

    Swift

    public var circleBlur: Double? { get set }
  • The fill color of the circle.

    Declaration

    Swift

    public var circleColor: ColorRepresentable? { get set }
  • The opacity at which the circle will be drawn.

    Declaration

    Swift

    public var circleOpacity: Double? { get set }
  • Circle radius.

    Declaration

    Swift

    public var circleRadius: Double? { get set }
  • The stroke color of the circle.

    Declaration

    Swift

    public var circleStrokeColor: ColorRepresentable? { get set }
  • The opacity of the circle’s stroke.

    Declaration

    Swift

    public var circleStrokeOpacity: Double? { get set }
  • The width of the circle’s stroke. Strokes are placed outside of the circle-radius.

    Declaration

    Swift

    public var circleStrokeWidth: Double? { get set }