public class Projection
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
TileProjection |
fromBoundsToTile(LatLngBounds lb,
int zoom,
int width)
根据指定的经纬度范围及缩放级别,返回SDK适用的瓦片编号范围(按照指定的瓦片宽度切图)。
|
LatLng |
fromScreenLocation(android.graphics.Point paramPoint)
将屏幕坐标转换成地理坐标。
|
LatLngBounds |
getMapBounds(LatLng center,
float zoom)
根据中心点和zoom级别获取地图控件对应的目标区域
Get the target area corresponding to the map control based on the center point and zoom level. |
VisibleRegion |
getVisibleRegion()
返回当前可视区域(包含MapView四个角点的经纬度坐标)坐标信息。
|
android.graphics.PointF |
toMapLocation(LatLng paramLatLng)
已过时。
|
android.graphics.PointF |
toOpenGLLocation(LatLng paramLatLng)
将地理坐标转换成openGL坐标,在
GLSurfaceView.Renderer.onDrawFrame(GL10)中使用openGL坐标绘制。 |
float |
toOpenGLWidth(int screenWidth)
返回一个屏幕宽度转换来的openGL 需要的宽度。
|
android.graphics.Point |
toScreenLocation(LatLng paramLatLng)
将地理坐标转换成屏幕坐标。
|
public LatLng fromScreenLocation(android.graphics.Point paramPoint)
paramPoint - 屏幕坐标 如果传入null 则返回null。
public android.graphics.Point toScreenLocation(LatLng paramLatLng)
paramLatLng - 地理坐标 如果传入 null 则返回null。
@Deprecated public android.graphics.PointF toMapLocation(LatLng paramLatLng)
GLSurfaceView.Renderer.onDrawFrame(GL10)中使用openGL坐标绘制。
GLSurfaceView.Renderer.onDrawFrame(GL10).paramLatLng - 地理坐标 如果传入 null 则返回null
public android.graphics.PointF toOpenGLLocation(LatLng paramLatLng)
GLSurfaceView.Renderer.onDrawFrame(GL10)中使用openGL坐标绘制。
GLSurfaceView.Renderer.onDrawFrame(GL10).paramLatLng - 地理坐标 如果传入 null 则返回null
public float toOpenGLWidth(int screenWidth)
screenWidth - 屏幕的宽度(像素)。
public VisibleRegion getVisibleRegion()
public TileProjection fromBoundsToTile(LatLngBounds lb, int zoom, int width)
lb - 经纬度范围。
zoom - 缩放级别。
width - 瓦片宽度。要求为2 的 n次方。
public LatLngBounds getMapBounds(LatLng center, float zoom)
center - 坐标中心
zoom - zoom级别