public class Projection extends Object
단말 화면 상의 좌표와 지도 상의 좌표 간 변환을 담당하는 클래스.
InaviMap.getProjection()
함수를 통해서만 인스턴스를 얻을 수 있습니다.Modifier and Type | Method and Description |
---|---|
LatLng |
getLatLngFromPoint(PointF point)
단말 화면 상의 좌표를 지도 상의 좌표(위도, 경도)로 변환합니다.
|
double |
getMetersPerDp()
현재 지도의 축척을 미터/DP 단위로 반환합니다.
|
double |
getMetersPerDp(double latitude,
double zoom)
카메라의 위도, 줌 레벨에 따른 축척을 미터/DP 단위로 반환합니다.
|
double |
getMetersPerPixel()
현재 지도의 축척을 미터/픽셀 단위로 반환합니다.
|
double |
getMetersPerPixel(double latitude)
카메라의 위도, 현재 지도의 줌 레벨에 따른 축척을 미터/픽셀 단위로 반환합니다.
|
double |
getMetersPerPixel(double latitude,
double zoom)
카메라의 위도, 줌 레벨에 따른 축척을 미터/픽셀 단위로 반환합니다.
|
PointF |
getPointFromLatLng(LatLng latLng)
지도 상의 좌표를 단말 화면 상의 좌표(x, y)로 변환합니다.
|
public double getMetersPerPixel(double latitude)
latitude
- 카메라의 위도public double getMetersPerPixel(double latitude, double zoom)
latitude
- 카메라의 위도zoom
- 줌 레벨public double getMetersPerDp(double latitude, double zoom)
latitude
- 카메라의 위도zoom
- 줌 레벨public double getMetersPerPixel()
public double getMetersPerDp()
public LatLng getLatLngFromPoint(PointF point)
point
- 단말 화면 상의 좌표LatLng
) 객체.© 2019. iNavi Systems Corp. All rights reserved.