INVRouteLink


@interface INVRouteLink : NSObject

경로를 구성하는 좌표열과 색상 속성을 정의한 클래스.

See

INVRoute
  • 경로의 색상.

    기본값은 UIColor.blackColor입니다.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) UIColor *_Nonnull lineColor;

    Swift

    @NSCopying var lineColor: UIColor { get set }
  • 경로의 테두리 색상.

    기본값은 UIColor.whiteColor입니다.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) UIColor *_Nonnull strokeColor;

    Swift

    @NSCopying var strokeColor: UIColor { get set }
  • 경로의 좌표열.

    coords의 크기는 2 이상이어야 합니다.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic) NSArray<INVLatLng *> *_Nonnull coords;

    Swift

    var coords: [INVLatLng] { get set }
  • 좌표열을 이용하여 링크 객체를 생성합니다.

    coords의 크기는 2 이상이어야 합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)linkWithCoords:(NSArray<INVLatLng *> *_Nonnull)coords;

    Swift

    convenience init(coords: [INVLatLng])

    Parameters

    coords

    좌표열.

    Return Value

    INVRouteLink 객체.

  • 좌표열과 색상을 이용하여 링크 객체를 생성합니다.

    coords의 크기는 2 이상이어야 합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)linkWithCoords:(NSArray<INVLatLng *> *_Nonnull)coords
                                 lineColor:(UIColor *_Nonnull)lineColor
                               strokeColor:(UIColor *_Nonnull)strokeColor;

    Swift

    convenience init(coords: [INVLatLng], lineColor: UIColor, stroke strokeColor: UIColor)

    Parameters

    coords

    좌표열.

    lineColor

    색상.

    strokeColor

    테두리 색상.

    Return Value

    INVRouteLink 객체.