AMapController class
地图通信中心
Properties
- channel → MethodChannel
-
只用于测试
用于与native的通信
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- mapId → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearDisk(
) → Future< void> - 清空缓存
-
disponse(
) → void -
fromScreenCoordinate(
ScreenCoordinate screenCoordinate) → Future< LatLng> - 屏幕坐标转经纬度 From v1.0.3
-
moveCamera(
CameraUpdate cameraUpdate, {bool animated = true, int duration = 250}) → Future< void> - 改变地图视角
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
takeSnapshot(
) → Future< Uint8List?> - 地图截屏
-
toScreenCoordinate(
LatLng latLng) → Future< ScreenCoordinate> - 经纬度转屏幕坐标 since v1.0.3
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
init(
int id, CameraPosition initialCameration, _MapState mapState) → Future< AMapController> - 根据传入的id初始化AMapController 主要用于在AMapWidget初始化时在AMapWidget.onMapCreated中初始化controller