public class Mercator extends java.lang.Object implements MapViewConstants
ANIMATION_DURATION_DEFAULT, ANIMATION_DURATION_LONG, ANIMATION_DURATION_SHORT, ANIMATION_SMOOTHNESS_DEFAULT, ANIMATION_SMOOTHNESS_HIGH, ANIMATION_SMOOTHNESS_LOW, DEBUGMODE, MINIMUM_ZOOMLEVEL, NOT_SET
限定符和类型 | 方法和说明 |
---|---|
static BoundingBoxE6 |
getBoundingBoxFromCoords(int left,
int top,
int right,
int bottom,
int zoom)
获取墨卡托投影范围BoundingBoxE6
|
static BoundingBoxE6 |
getBoundingBoxFromPointInMapTile(Point aMapTile,
int aZoom)
根据点位获取当前地图瓦片的范围
|
static Point |
projectGeoPoint(double aLat,
double aLon,
int aZoom,
Point aReuse)
在给定的缩放级别的GeoPoint墨卡托投影手机屏幕位置
|
static Point |
projectGeoPoint(IGeoPoint aGeoPoint,
int aZoom,
Point aReuse)
在给定的缩放级别的GeoPoint墨卡托投影手机屏幕位置
|
static Point |
projectGeoPoint(int aLatE6,
int aLonE6,
int aZoom,
Point aReuse)
在给定的缩放级别的GeoPoint墨卡托投影手机屏幕位置
|
static GeoPoint |
projectPoint(int x,
int y,
int aZoom)
在给定的缩放级别内转化屏幕坐标对应的位置
|
static double |
tile2lat(int y,
int aZoom)
对y坐标进行换算
|
static double |
tile2lon(int x,
int aZoom)
对x坐标进行换算
|
public static Point projectGeoPoint(int aLatE6, int aLonE6, int aZoom, Point aReuse)
aLatE6
- latitude in degrees [-89000000 to 89000000]aLonE6
- longitude in degrees [-180000000 to 180000000]aZoom
- zoom 级别aReuse
- public static Point projectGeoPoint(IGeoPoint aGeoPoint, int aZoom, Point aReuse)
aGeoPoint
- 位置对象aZoom
- zoom 级别aReuse
- public static Point projectGeoPoint(double aLat, double aLon, int aZoom, Point aReuse)
aLat
- latitude in degrees [-89 to 89]aLon
- longitude in degrees [-180 to 180]aZoom
- zoom 级别aReuse
- public static BoundingBoxE6 getBoundingBoxFromCoords(int left, int top, int right, int bottom, int zoom)
left
- top
- right
- bottom
- zoom
- public static BoundingBoxE6 getBoundingBoxFromPointInMapTile(Point aMapTile, int aZoom)
aMapTile
- 瓦片中的点位aZoom
- zoom级别public static GeoPoint projectPoint(int x, int y, int aZoom)
x
- x坐标y
- y坐标aZoom
- zoom级别public static double tile2lon(int x, int aZoom)
x
- aZoom
- zoom级别public static double tile2lat(int y, int aZoom)
y
- aZoom
- zoom级别