LineAnnotation
public struct LineAnnotation : Annotation
extension LineAnnotation: Equatable
Marks a series of coordinates map, representing a line shape.
-
Uniquely identifies the annotation.
Declaration
Swift
public private(set) var identifier: String { get }
-
The type of the annotation - in this case, a line.
Declaration
Swift
public private(set) var type: AnnotationType { get }
-
The text string containing the annotation’s title. If the value is defined, the map shows an the annotation’s title near the annotation.
Declaration
Swift
public var title: String?
-
Whether or not the annotation has been selected, either via a tap gesture or programmatically.
Declaration
Swift
public var isSelected: Bool
-
The center coordinate of the annotation.
The annotation is rendered on the map at this location.
Declaration
Swift
private(set) public var coordinates: [CLLocationCoordinate2D] { get }
-
The optional userInfo associated with the line annotation.
Declaration
Swift
public var userInfo: [String : Any]?
-
Creates a new
Annotation
initialized with a given coordinate.Note
This method does make the annotation visible. Use AnnotationManager.addAnnotation(_ annotation:) to render it on the map view.
Declaration
Swift
public init(coordinates: [CLLocationCoordinate2D])
Parameters
coordinate
The center coordinate of the annotation.
Return Value
Annotation
instance initialized with a given coordinate. -
Declaration
Swift
public static func == (lhs: LineAnnotation, rhs: LineAnnotation) -> Bool