CircleAnnotation

public struct CircleAnnotation : Annotation

Undocumented

  • id

    Identifier for this annotation

    Declaration

    Swift

    public let id: String
  • The geometry backing this annotation

    Declaration

    Swift

    public var geometry: Geometry { get }
  • The point backing this annotation

    Declaration

    Swift

    public var point: Point
  • Properties associated with the annotation

    Declaration

    Swift

    public var userInfo: [String : Any]?
  • Toggles the annotation’s selection state. If the annotation is deselected, it becomes selected. If the annotation is selected, it becomes deselected.

    Declaration

    Swift

    public var isSelected: Bool
  • Property to determine whether annotation can be manually moved around map

    Declaration

    Swift

    public var isDraggable: Bool
  • Create a circle annotation with a Point and an optional identifier.

    Declaration

    Swift

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

    Declaration

    Swift

    public init(id: String = UUID().uuidString, centerCoordinate: CLLocationCoordinate2D, isSelected: Bool = false, isDraggable: Bool = false)

    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: StyleColor? { 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: StyleColor? { 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 }