public final class Projection
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
LatLng |
fromScreenLocation(android.graphics.Point point)
获取屏幕上的点对应当前地图的经纬度
|
VisibleRegion |
getVisibleRegion()
获取当前地图视野的经纬度
|
double |
metersPerPixel(double lat)
计算在当前地图级别下指定纬度的一像素表示多少米
|
android.graphics.Point |
toScreenLocation(LatLng latlng)
获取当前地图经纬度对应的屏幕坐标
|
public LatLng fromScreenLocation(android.graphics.Point point)
point
- 屏幕坐标点public android.graphics.Point toScreenLocation(LatLng latlng)
latlng
- 当前地图的经纬度public double metersPerPixel(double lat)
lat,要计算的纬度。
- public VisibleRegion getVisibleRegion()
VisibleRegion