INVPolyline


@interface INVPolyline : INVShape

지도 위에 선형을 표출하는 셰이프 클래스.

  • 폴리라인의 두께. (pt 단위)

    기본값은 2.5입니다.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat width;

    Swift

    var width: CGFloat { get set }
  • 폴리라인의 색상.

    기본값은 UIColor.blackColor입니다.

    Declaration

    Objective-C

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

    Swift

    @NSCopying var color: UIColor { get set }
  • 폴리라인의 끝 지점 모양.

    기본값은 INVLineCapButt입니다.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) INVLineCap capType;

    Swift

    var capType: INVLineCap { get set }
  • 폴리라인의 연결점 모양.

    기본값은 INVLineJoinMiter입니다.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) INVLineJoin joinType;

    Swift

    var joinType: INVLineJoin { get set }
  • 폴리라인의 점선 패턴. (pt 단위)

    배열 내 홀수 index의 값은 실선의 길이, 짝수 index의 값은 공백의 길이를 의미합니다.
    빈 배열일 경우 실선이 됩니다.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSArray<NSNumber *> *_Nonnull pattern;

    Swift

    var pattern: [NSNumber] { 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)polylineWithCoords:
        (nonnull NSArray<INVLatLng *> *)coords;

    Swift

    convenience init(coords: [INVLatLng])

    Parameters

    coords

    좌표열.

    Return Value

    INVPolyline 객체.