|
|
@@ -29,24 +29,24 @@ class AmapViewController {
|
|
|
}
|
|
|
|
|
|
Future<void> setMapMarkers(List<AmapMarker> markers) async {
|
|
|
- return await _methodChannel.invokeMethod(
|
|
|
+ return _methodChannel.invokeMethod(
|
|
|
"setMarkers", {"markers": markers.map((f) => f.toMap()).toList()});
|
|
|
}
|
|
|
|
|
|
Future<void> onCreateMapView() async {
|
|
|
- return await _methodChannel.invokeMethod('onCreate');
|
|
|
+ return _methodChannel.invokeMethod('onCreate');
|
|
|
}
|
|
|
|
|
|
Future<void> onPauseMapView() async {
|
|
|
- return await _methodChannel.invokeMethod('onPause');
|
|
|
+ return _methodChannel.invokeMethod('onPause');
|
|
|
}
|
|
|
|
|
|
Future<void> onResumeMapView() async {
|
|
|
- return await _methodChannel.invokeMethod('onResume');
|
|
|
+ return _methodChannel.invokeMethod('onResume');
|
|
|
}
|
|
|
|
|
|
Future<void> moveCamera(Map<String,double> map) async {
|
|
|
- return await _methodChannel.invokeMethod('moveCamera',{"data":map});
|
|
|
+ return _methodChannel.invokeMethod('moveCamera',{"data":map});
|
|
|
}
|
|
|
|
|
|
void dispose() {
|