AmapController class

地图控制类

Mixed in types

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, MarkerOption option) Future<Marker>
添加marker [...]
addMarkers(BuildContext context, List<MarkerOption> options) Future<List<Marker>>
批量添加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>
添加线 [...]
clearMarkers() Future<void>
清除所有marker
didChangeAccessibilityFeatures() → void
Called when the system changes the set of currently active accessibility features. [...]
inherited
didChangeAppLifecycleState(AppLifecycleState state) → void
Called when the system puts the app in the background or returns the app to the foreground. [...]
override
didChangeLocales(List<Locale> locales) → void
Called when the system tells the app that the user's locale has changed. For example, if the user changes the system language settings. [...]
inherited
didChangeMetrics() → void
Called when the application's dimensions change. For example, when a phone is rotated. [...]
inherited
didChangePlatformBrightness() → void
Called when the platform brightness changes. [...]
inherited
didChangeTextScaleFactor() → void
Called when the platform's text scale factor changes. [...]
inherited
didHaveMemoryPressure() → void
Called when the system is running low on memory. [...]
inherited
didPopRoute() Future<bool>
Called when the system tells the app to pop the current route. For example, on Android, this is called when the user presses the back button. [...]
inherited
didPushRoute(String route) Future<bool>
Called when the host tells the application to push a new route onto the navigator. [...]
inherited
didPushRouteInformation(RouteInformation routeInformation) Future<bool>
Called when the host tells the application to push a new RouteInformation and a restoration state onto the router. [...]
inherited
dispose() → void
getCenterCoordinate() Future<LatLng>
获取地图中心点
getLocation() Future<LatLng>
获取当前位置 [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setAllGesturesEnabled(bool enable) Future
所有手势使能
setCenterCoordinate(double lat, double lng, {double zoomLevel = 15, bool animated = true}) Future
设置地图中心点
setMapClickListener(OnMapClick onMapClick) Future<void>
设置地图点击监听事件
setMapDragListener(OnMapDrag onMapDrag) Future<void>
设置地图拖动监听事件
setMapLanguage(Language language) Future
选择地图语言
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, {Color strokeColor, Color fillColor, double strokeWidth}) Future<void>
是否显示我的位置 [...]
showScaleControl(bool enable) Future
显示比例尺控件
showTraffic(bool enable) Future
显示路况信息
showZoomControl(bool enable) Future
显示缩放控件
toString() String
A string representation of this object. [...]
inherited
zoomIn({bool animated = true}) Future
放大一个等级
zoomOut({bool animated = true}) Future
放大一个等级

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited