INVCircle


@interface INVCircle : INVShape

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

  • 원의 중심점 좌표.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) INVLatLng *_Nonnull center;

    Swift

    var center: INVLatLng { get set }
  • 원의 반경. (미터 단위)

    기본값은 1000입니다.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) double radius;

    Swift

    var radius: Double { get set }
  • 원의 채우기 색상.

    기본값은 UIColor.whiteColor입니다.

    Declaration

    Objective-C

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

    Swift

    @NSCopying var fillColor: UIColor { get set }
  • 원의 테두리 두께. (pt 단위)

    기본값은 0입니다.

    Declaration

    Objective-C

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

    Swift

    var strokeWidth: Double { get set }
  • 원의 테두리 색상.

    기본값은 UIColor.blackColor입니다.

    Declaration

    Objective-C

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

    Swift

    @NSCopying var strokeColor: UIColor { get set }
  • 중심점과 반경을 이용하여 원 객체를 생성합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)circleWithCenter:(nonnull INVLatLng *)center
                                      radius:(double)radius;

    Swift

    convenience init(center: INVLatLng, radius: Double)

    Parameters

    center

    중심점.

    radius

    원의 반경. (미터 단위)

    Return Value

    INVCircle 객체.

  • 중심점, 반경, 채우기 색상을 이용하여 원 객체를 생성합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)circleWithCenter:(nonnull INVLatLng *)center
                                      radius:(double)radius
                                   fillColor:(nonnull UIColor *)fillColor;

    Swift

    convenience init(center: INVLatLng, radius: Double, fill fillColor: UIColor)

    Parameters

    center

    중심점.

    radius

    반경. (미터 단위)

    fillColor

    채우기 색상.

    Return Value

    INVCircle 객체.