Appearance
相机与投影
FTMapCameraUpdateFactory
| 方法 | 说明 |
|---|---|
static newLatLng(coord) / static newLatLngZoom(coord, zoom) | 目标位置(+缩放) |
static zoomIn() / static zoomOut() / static zoomTo(zoom) | 缩放 |
static newCameraPosition(position) | 按完整相机位置移动(FTMapCameraPosition) |
static changeBearing(bearing) | 旋转 |
static changeTilt(tilt) | 倾斜 |
static newLatLngBounds(bounds, padding?) | 适配到边界(四周留白 padding px) |
static newLatLngBoundsWithPadding(bounds, l, t, r, b) | 四向分别 padding |
FTMapProjection
| 方法 | 说明 |
|---|---|
toScreenLocation(lat, lng, callback) | 经纬度 → 屏幕坐标 |
fromScreenLocation(x, y, callback) | 屏幕坐标 → 经纬度 |
getVisibleRegion(callback) | 当前可见区域(四角坐标) |
FTMapCoordinate
| 属性/方法 | 说明 |
|---|---|
latitude / longitude | 经纬度 |
constructor(lat, lng) | 构造 |
FTMapCoordinateBounds
| 方法 | 说明 |
|---|---|
constructor(southwest, northeast) | 西南-东北角构造 |
contains(point): boolean | 包含判断 |
center(): FTMapCoordinate | 中心点 |
