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
getMapContentApprovalNumber() Future<String?>
获取地图审图号(普通地图)
getSatelliteImageApprovalNumber() Future<String?>
获取地图审图号(卫星地图)
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
setRenderFps(int fps) Future<void>
设置地图每秒渲染的帧数
takeSnapshot() Future<Uint8List?>
地图截屏
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