MKPolyline

class MKPolyline : MKMultiPoint, MKOverlay
  • SwifterSwift: Create a new MKPolyline from a provided Array of coordinates.

    Declaration

    Swift

    convenience init(coordinates: [CLLocationCoordinate2D])

    Parameters

    coordinates

    Array of CLLocationCoordinate2D(s).

  • SwifterSwift: Return an Array of coordinates representing the provided polyline.

    Declaration

    Swift

    var coordinates: [CLLocationCoordinate2D] { get }