INVPolygon


@interface INVPolygon : INVShape

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

  • 폴리곤의 채우기 색상.

    기본값은 UIColor.whiteColor입니다.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull fillColor;

    Swift

    var fillColor: UIColor { get set }
  • 폴리곤의 테두리 두께. (픽셀 단위)

    기본값은 0입니다.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSUInteger strokeWidth;

    Swift

    var strokeWidth: UInt { get set }
  • 폴리곤의 테두리 색상.

    기본값은 UIColor.blackColor입니다.

    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)polygonWithCoords:(nonnull NSArray<INVLatLng *> *)coords
                                    fillColor:(nonnull UIColor *)fillColor;

    Swift

    convenience init(coords: [INVLatLng], fill fillColor: UIColor)

    Parameters

    coords

    좌표열.

    fillColor

    채우기 색상.

    Return Value

    INVPolygon 객체.

  • 좌표열을 이용하여 폴리곤 객체를 생성합니다.

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

    Declaration

    Objective-C

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

    Swift

    convenience init(coords: [INVLatLng])

    Parameters

    coords

    좌표열.

    Return Value

    INVPolygon 객체.