INVLatLngBounds


@interface INVLatLngBounds : NSObject

북동쪽, 남서쪽의 위도, 경도 좌표로 구성된 범위 사각형 영역 클래스.

  • 남서쪽 좌표.

    Declaration

    Objective-C

    @property (readonly, nonatomic) INVLatLng *_Nonnull southWest;

    Swift

    var southWest: INVLatLng { get }
  • 북동쪽 좌표.

    Declaration

    Objective-C

    @property (readonly, nonatomic) INVLatLng *_Nonnull northEast;

    Swift

    var northEast: INVLatLng { get }
  • 남동쪽 좌표.

    Declaration

    Objective-C

    @property (readonly, nonatomic) INVLatLng *_Nonnull southEast;

    Swift

    var southEast: INVLatLng { get }
  • 북서쪽 좌표.

    Declaration

    Objective-C

    @property (readonly, nonatomic) INVLatLng *_Nonnull northWest;

    Swift

    var northWest: INVLatLng { get }
  • 중심점 좌표.

    Declaration

    Objective-C

    @property (readonly, nonatomic) INVLatLng *_Nonnull center;

    Swift

    var center: INVLatLng { get }
  • 현재 사각형 영역에 특정 좌표가 포함되어 있는지 여부를 반환합니다.

    Declaration

    Objective-C

    - (BOOL)containsLatLng:(nonnull INVLatLng *)latLng;

    Swift

    func contains(_ latLng: INVLatLng) -> Bool
  • 현재 사각형 영역에 특정 사각형 영역이 포함되어 있는지 여부를 반환합니다.

    Declaration

    Objective-C

    - (BOOL)containsBounds:(nonnull INVLatLngBounds *)bounds;

    Swift

    func contains(_ bounds: INVLatLngBounds) -> Bool
  • 남서쪽, 북동쪽 좌표로 INVLatLngBounds 객체를 생성합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)boundsWithSouthWest:(nonnull INVLatLng *)southWest
                                      northEast:(nonnull INVLatLng *)northEast;

    Swift

    convenience init(southWest: INVLatLng, northEast: INVLatLng)

    Parameters

    southWest

    남서쪽 좌표.

    northEast

    북동쪽 좌표.

    Return Value

    INVLatLngBounds객체.

  • 좌표열을 포함하는 최소한의 사각형 영역으로 INVLatLngBounds 객체를 생성합니다.

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

    Declaration

    Objective-C

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

    Swift

    convenience init(coords: [INVLatLng])

    Parameters

    coords

    사각형 영역에 포함될 좌표열.

    Return Value

    INVLatLngBounds객체.

  • Deprecated

    boundsWithSouthWest:northEast로 대체됩니다.

    남서쪽, 북동쪽 좌표로 INVLatLngBounds 객체를 생성합니다.

    Declaration

    Objective-C

    + (nonnull instancetype)latLngBoundsSouthWest:(nonnull INVLatLng *)southWest
                                        northEast:(nonnull INVLatLng *)northEast;

    Parameters

    southWest

    남서쪽 좌표.

    northEast

    북동쪽 좌표.

    Return Value

    INVLatLngBounds 객체.