TGGeoPolyline


@interface TGGeoPolyline : NSObject

A shape made of connected line segments.

The shape is defined by an ordered list of geographic coordinates.

  • Initializes a polyline with the specified coordinates.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCoordinates:
                                (nonnull const CLLocationCoordinate2D *)coordinates
                                          count:(NSUInteger)count;

    Swift

    init(coordinates: UnsafePointer<CLLocationCoordinate2D>, count: UInt)

    Parameters

    coordinates

    The array of coordinates defining the polyline. This data is copied into the new object.

    Return Value

    An initialized polyline.

  • The array of coordinates defining this polyline.

    Declaration

    Objective-C

    @property (readonly, atomic) CLLocationCoordinate2D *_Nonnull coordinates;

    Swift

    var coordinates: UnsafeMutablePointer<CLLocationCoordinate2D> { get }
  • The number of coordinates in the polyline.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSUInteger count;

    Swift

    var count: UInt { get }