AMapController class

Constructors

AMapController.withId(int id)

Properties

mapClickedEvent → Stream<LatLng>
map点击事件流
read-only
markerClickedEvent → Stream<MarkerOptions>
marker点击事件流
read-only
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addMarker(MarkerOptions options) → Future
添加单个个Marker
addMarkers(List<MarkerOptions> optionsList, { bool moveToCenter: true, bool clear: true }) → Future
添加多个Marker
addPolygon(PolygonOptions options) → Future
addPolyline(PolylineOptions options) → Future
添加线
changeLatLng(LatLng target) → Future
移动指定LatLng到中心
clearMap() → Future
清除地图
clearMarkers() → Future
清除marker
dispose() → void
getCenterLatlng() → Future<LatLng>
获取中心点
screenShot() → Future<Uint8List>
截图 [...]
setCustomMapStyleID(String styleId) → Future
使用在线自定义样式
setCustomMapStylePath(String path) → Future
设置自定义样式的文件路径
setLanguage(int language) → Future
设置语言为language
setMapCustomEnable(bool enabled) → Future
使能自定义样式
setMapStatusLimits({LatLng swLatLng, LatLng neLatLng, LatLng center, double deltaLat, double deltaLng }) → Future
限制地图的显示范围
setMapType(int mapType) → Future
设置地图类型 [...]
setMyLocationStyle(MyLocationStyle style) → Future
设置我的位置
setPosition({LatLng target, double zoom: 10, double tilt: 0, double bearing: 0 }) → Future
设置地图中心点
setUiSettings(UiSettings uiSettings) → Future
设置控件参数
setZoomLevel(int level) → Future
设置缩放等级 [...]
showIndoorMap(bool enable) → Future
是否使能室内地图
showMyLocation(bool show) → Future
显示我的位置
zoomToSpan(List<LatLng> bound, { int padding: 80 }) → Future
移动镜头到当前的视角
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited