AMapController class
Methods
-
addMarker(MarkerOptions options)
→ Future
-
-
addMarkers(List<MarkerOptions> optionsList, {bool moveToCenter = true, bool clear = true})
→ Future
-
-
addOverlay()
→ Future
-
-
addPolyline(PolylineOptions options)
→ Future
-
添加线
-
addTileOverlay(List<LatLng> optionsList)
→ Future
-
-
changeCarToLatLng(LatLng target, {bool isChangeDirection = false})
→ Future
-
移动车辆到指定LatLng,以及是否改变车头方向,默认false
-
changeLatLng(LatLng target)
→ Future
-
移动指定LatLng到中心
-
clearMap()
→ Future
-
-
clearMarkers()
→ Future
-
-
dispose()
→ void
-
-
getCenterLatlng()
→ Future<LatLng>
-
获取中心点
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
screenShot()
→ Future<Uint8List>
-
截图
-
setCustomMapStyleID(String styleId)
→ Future
-
使用在线自定义样式
-
setCustomMapStylePath(String path)
→ Future
-
设置自定义样式的文件路径
-
setLanguage(int language)
→ Future
-
-
setMapCustomEnable(bool enabled)
→ Future
-
使能自定义样式
-
setMapStatusLimits({required LatLng swLatLng, required LatLng neLatLng, required LatLng center, required double deltaLat, required double deltaLng})
→ Future
-
限制地图的显示范围
-
setMapType(int mapType)
→ Future
-
-
setMyLocationStyle(MyLocationStyle style)
→ Future
-
-
setPosition({required LatLng target, double zoom = 10, double tilt = 0, double bearing = 0})
→ Future
-
设置地图中心点
-
setUiSettings(UiSettings uiSettings)
→ Future
-
-
setZoomLevel(int level)
→ Future
-
设置缩放等级
-
showIndoorMap(bool enable)
→ Future
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMarker(MarkerOptions options)
→ Future
-
-
zoomToSpan(List<LatLng> bound, {int paddingT = 80, int paddingL = 80, int paddingB = 80, int paddingR = 80})
→ Future
-
移动镜头到当前的视角