MethodChannelAMapFlutterMap class

使用MethodChannel与Native代码通信的AMapFlutterPlatform的实现。

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildView(Map<String, dynamic> creationParams, Set<Factory<OneSequenceGestureRecognizer>> gestureRecognizers, void onPlatformViewCreated(int id)) Widget
override
channel(int mapId) MethodChannel
clearDisk({required int mapId}) Future<void>
dispose({required int id}) → void
override
getMapContentApprovalNumber({required int mapId}) Future<String?>
getSatelliteImageApprovalNumber({required int mapId}) Future<String?>
init(int mapId) Future<void>
/// Initializes the platform interface with id.
override
moveCamera(CameraUpdate cameraUpdate, {required int mapId, bool animated = true, int duration = 0}) Future<void>
移动镜头到一个新的位置
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCameraMove({required int mapId}) Stream<CameraPositionMoveEvent>
onCameraMoveEnd({required int mapId}) Stream<CameraPositionMoveEndEvent>
Camera 移动结束回调
onLocationChanged({required int mapId}) Stream<LocationChangedEvent>
onMapLongPress({required int mapId}) Stream<MapLongPressEvent>
onMapTap({required int mapId}) Stream<MapTapEvent>
onMarkerDragEnd({required int mapId}) Stream<MarkerDragEndEvent>
onMarkerTap({required int mapId}) Stream<MarkerTapEvent>
onPoiTouched({required int mapId}) Stream<MapPoiTouchEvent>
onPolylineTap({required int mapId}) Stream<PolylineTapEvent>
setRenderFps(int fps, {required int mapId}) Future<void>
设置地图每秒渲染的帧数
takeSnapshot({required int mapId}) Future<Uint8List?>
截屏
toString() String
A string representation of this object.
inherited
updateMapOptions(Map<String, dynamic> newOptions, {required int mapId}) Future<void>
更新地图参数
updateMarkers(MarkerUpdates markerUpdates, {required int mapId}) Future<void>
更新Marker的数据
updatePolygons(PolygonUpdates polygonUpdates, {required int mapId}) Future<void>
更新polygon的数据
updatePolylines(PolylineUpdates polylineUpdates, {required int mapId}) Future<void>
更新polyline的数据

Operators

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