INVProjection
Objective-C
@interface INVProjection : NSObject
Swift
class INVProjection : NSObject
단말 화면 상의 좌표와 지도 상의 좌표 간 변환을 담당하는 클래스.
-
단말 화면 상의 영역을 위경도 영역으로 변환합니다.
Declaration
Objective-C
- (nonnull INVLatLngBounds *)latlngBoundsFromViewBounds:(CGRect)viewBounds;Swift
func latlngBounds(fromViewBounds viewBounds: CGRect) -> INVLatLngBoundsParameters
viewBounds화면 영역.
Return Value
위경도 영역.
-
위경도 영역을 단말 화면 상의 영역으로 변환합니다.
Declaration
Objective-C
- (CGRect)viewBoundsFromLatLngBounds:(nonnull INVLatLngBounds *)latlngBounds;Swift
func viewBounds(from latlngBounds: INVLatLngBounds) -> CGRectParameters
latlngBounds위경도 영역.
Return Value
화면 영역.
-
카메라의 위도에 따른 축척을 미터/픽셀 단위로 반환합니다.
Declaration
Objective-C
- (double)metersPerPixel;Swift
func metersPerPixel() -> DoubleReturn Value
축척. (미터/픽셀 단위)
-
카메라의 위도, 줌 레벨에 따른 축척을 미터/픽셀 단위로 반환합니다.
Declaration
Objective-C
- (double)metersPerPixelAtLatitude:(double)latitude zoom:(double)zoom;Swift
func metersPerPixel(atLatitude latitude: Double, zoom: Double) -> DoubleParameters
latitude카메라의 위도.
zoom줌 레벨.
Return Value
축척. (미터/픽셀 단위)
INVProjection Class Reference