AmapController class
地图控制类
Constructors
- AmapController.android(com_amap_api_maps_MapView _androidController)
- Android构造器
- AmapController.ios(MAMapView _iosController)
- iOS构造器
Properties
- 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
-
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, bool draggable }) → 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 - 设置地图中心点
-
setMapLanguage(
Language language) → Future - 选择地图语言 (ios未完成)
-
setMapType(
MapType mapType) → Future - 选择显示图层
-
setMarkerClickListener(
_OnMarkerClick onMarkerClicked) → Future< void> - 设置marker点击监听事件
-
setMarkerDragListener(
{_OnMarkerDrag onMarkerDragStart, _OnMarkerDrag onMarkerDragging, _OnMarkerDrag onMarkerDragEnd }) → 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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited