AmapController class

地图控制类

Mixed in types

Constructors

AmapController.android(com_amap_api_maps_TextureMapView androidController, _AmapViewState state)
Android构造器
AmapController.ios(MAMapView iosController, _AmapViewState state)
iOS构造器

Properties

androidController ↔ com_amap_api_maps_TextureMapView
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
iosController ↔ MAMapView
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

addCircle(CircleOption option) Future<Circle>
添加圆 [...]
inherited
addGroundOverlay(GroundOverlayOption option) Future<GroundOverlay>
添加图片覆盖物
inherited
addHeatmapTileOverlay(HeatmapTileOption option) Future<HeatmapOverlay>
添加热力图
inherited
addMarker(MarkerOption option) Future<Marker>
添加marker [...]
inherited
addMarkers(List<MarkerOption> options) Future<List<Marker>>
批量添加marker [...]
inherited
addMultiPointOverlay(MultiPointOption option) Future<MultiPointOverlay>
添加海量点
inherited
addPolygon(PolygonOption option) Future<Polygon>
添加多边形 [...]
inherited
addPolyline(PolylineOption option) Future<Polyline>
添加折线 [...]
inherited
addSmoothMoveMarker(SmoothMoveMarkerOption option) Future<SmoothMoveMarker>
批量添加marker [...]
inherited
clear({bool keepMyLocation = true}) Future<void>
清除地图上所有覆盖物 [...]
inherited
clearMarkers(List<Marker> markers) Future<void>
把marker列表从地图上移除
inherited
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() Future<void>
fromScreenLocation(Point point) Future<LatLng>
屏幕坐标转经纬度坐标
inherited
getCenterCoordinate() Future<LatLng>
获取地图中心点
inherited
getLocation({Duration interval = const Duration(milliseconds: 500), Duration timeout = const Duration(seconds: 10)}) Future<LatLng>
获取当前位置 [...]
inherited
getZoomLevel() Future<double>
获取当前缩放大小
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
requireAlwaysAuth() Future<void>
请求后台定位 *仅iOS
inherited
screenShot(OnScreenShot onScreenShot) Future<void>
截图
inherited
setAllGesturesEnabled(bool enable) Future<void>
所有手势使能
inherited
setCenterCoordinate(LatLng coordinate, {double zoomLevel, double bearing, double tilt, bool animated = true}) Future<void>
设置地图中心点 [...]
inherited
setCustomMapStyle({String styleDataPath, String styleExtraPath, String texturePath}) Future<void>
自定义地图 [...]
inherited
setInfoWindowClickListener(OnMarkerClicked onInfoWindowClicked) Future<void>
Marker弹窗点击事件监听
inherited
setMapClickedListener(OnMapClicked onMapClick) Future<void>
设置地图点击监听事件
inherited
setMapLanguage(Language language) Future<void>
选择地图语言
inherited
setMapLongPressedListener(OnMapClicked onMapLongPress) Future<void>
设置地图长按监听事件
inherited
setMapMoveListener({OnMapMove onMapMoveStart, OnMapMove onMapMoveEnd}) Future<void>
设置地图移动监听事件
inherited
setMapRegionLimits(LatLng southWest, LatLng northEast) Future<void>
限制地图的显示范围 [...]
inherited
setMapType(MapType mapType) Future<void>
选择显示图层
inherited
setMarkerClickedListener(OnMarkerClicked onMarkerClicked) Future<void>
设置marker点击监听事件
inherited
setMarkerDragListener({OnMarkerDrag onMarkerDragStart, OnMarkerDrag onMarkerDragging, OnMarkerDrag onMarkerDragEnd}) Future<void>
设置marker拖动监听事件
inherited
setMultiPointClickedListener(OnMultiPointClicked onMultiPointClicked) Future<void>
设置海量点点击监听事件
inherited
setMyLocationChangeListener(OnLocationChange onLocationChange) Future<void>
设置地图移动监听事件 [...]
inherited
setMyLocationRotateAngle(double angle) Future<void>
设置我的位置图标旋转角度
inherited
setRotateGesturesEnabled(bool enable) Future<void>
旋转手势使能
inherited
setScrollGesturesEnabled(bool enable) Future<void>
滑动手势使能
inherited
setTiltGesturesEnabled(bool enable) Future<void>
旋转手势使能
inherited
setZoomByCenter(bool byCenter) Future<void>
设置缩放是否以中心点为锚点
inherited
setZoomGesturesEnabled(bool enable) Future<void>
缩放手势使能
inherited
setZoomLevel(double level, {bool animated = true}) Future<void>
设置缩放大小 [...]
inherited
showCompass(bool enable) Future<void>
显示指南针
inherited
showCustomInfoWindow(Marker marker, Widget widget) Future<void>
自定义弹窗
inherited
showIndoorMap(bool show) Future<void>
是否显示室内地图
inherited
showLocateControl(bool enable) Future<void>
显示定位按钮
inherited
showMyLocation(MyLocationOption option) Future<void>
显示我的位置 [...]
inherited
showScaleControl(bool enable) Future<void>
显示比例尺控件
inherited
showTraffic(bool enable) Future<void>
显示路况信息
inherited
showZoomControl(bool enable) Future<void>
显示缩放控件
inherited
toScreenLocation(LatLng coord) Future<Point>
经纬度坐标转屏幕坐标
inherited
toString() String
A string representation of this object. [...]
inherited
zoomIn({bool animated = true}) Future<void>
放大一个等级
inherited
zoomOut({bool animated = true}) Future<void>
放大一个等级
inherited
zoomToSpan(List<LatLng> bounds, {EdgeInsets padding = const EdgeInsets.all(50), bool animated = true}) Future<void>
将指定的经纬度列表(包括但不限于marker, polyline, polygon等)调整至同一屏幕中显示 [...]
inherited

Operators

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