AmapController class
Methods
-
addCircle(LatLng point, double radius, { double width: 5, Color fillColor: Colors.white, Color strokeColor: Colors.black })
→ Future<void>
-
添加圆 [...]
-
addMarker(BuildContext context, LatLng point, { String title, String snippet, Uri iconUri })
→ Future
-
添加marker [...]
-
addPolygon(List<LatLng> points, { double width: 5, Color fillColor: Colors.white, Color strokeColor: Colors.black })
→ Future<void>
-
添加多边形 [...]
-
addPolyline(List<LatLng> points, { double width, Color strokeColor: Colors.black })
→ Future<void>
-
添加线 [...]
-
setAllGesturesEnabled(bool enable)
→ Future
-
所有手势使能
-
setCenterCoordinate(double lat, double lng, { double zoomLevel: 15, bool animated: true })
→ Future
-
设置地图中心点
-
setMapType(MapType mapType)
→ Future
-
选择显示图层
-
setMarkerClickListener(OnMarkerClick onMarkerClicked)
→ Future<void>
-
设置marker监听事件
-
setRotateGesturesEnabled(bool enable)
→ Future
-
旋转手势使能
-
setScrollGesturesEnabled(bool enable)
→ Future
-
滑动手势使能
-
setTiltGesturesEnabled(bool enable)
→ Future
-
旋转手势使能
-
setZoomGesturesEnabled(bool enable)
→ Future
-
缩放手势使能
-
setZoomLevel(double level, { bool animated: true })
→ Future
-
设置缩放大小
-
showCompass(bool enable)
→ Future
-
显示指南针
-
showIndoorMap(bool show)
→ Future
-
是否显示室内地图
-
showLocateControl(bool enable)
→ Future
-
显示定位按钮
-
showMyLocation(bool show)
→ Future<void>
-
是否显示我的位置
-
showScaleControl(bool enable)
→ Future
-
显示比例尺控件
-
showTraffic(bool enable)
→ Future
-
显示路况信息
-
showZoomControl(bool enable)
→ Future
-
显示缩放控件
-
zoomIn({bool animated: true })
→ Future
-
放大一个等级
-
zoomOut({bool animated: true })
→ 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