update readme doc
This commit is contained in:
parent
d48d3bb113
commit
718d9cff62
|
@ -16,7 +16,9 @@ flutter pub add amap_map
|
|||
```
|
||||
|
||||
## Prepare
|
||||
* 登录[高德开放平台官网](https://lbs.amap.com/)申请ApiKey。Android平台申请配置key请参考[Android获取key](https://lbs.amap.com/api/poi-sdk-android/develop/create-project/get-key/?sug_index=2), iOS平台申请配置请参考[iOS获取key](https://lbs.amap.com/api/poi-sdk-ios/develop/create-project/get-key/?sug_index=1)。
|
||||
* 登录[高德开放平台官网](https://lbs.amap.com/)申请ApiKey。
|
||||
- Android平台申请配置key请参考[Android获取key](https://lbs.amap.com/api/poi-sdk-android/develop/create-project/get-key/?sug_index=2)
|
||||
- iOS平台申请配置请参考[iOS获取key](https://lbs.amap.com/api/poi-sdk-ios/develop/create-project/get-key/?sug_index=1)
|
||||
|
||||
|
||||
## Demo
|
||||
|
@ -193,6 +195,7 @@ class AMapWidget extends StatefulWidget {
|
|||
}
|
||||
```
|
||||
|
||||
|
||||
### 地图控制器
|
||||
```dart
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ class AMapWidget extends StatefulWidget {
|
|||
/// 地图poi是否允许点击
|
||||
final bool touchPoiEnabled;
|
||||
|
||||
///是否显示3D建筑物
|
||||
/// 是否显示3D建筑物,默认显示
|
||||
final bool buildingsEnabled;
|
||||
|
||||
/// 是否显示底图文字标注
|
||||
|
@ -332,7 +332,7 @@ class _AMapOptions {
|
|||
///是否显示3D建筑物
|
||||
final bool? buildingsEnabled;
|
||||
|
||||
///是否显示底图文字标注
|
||||
/// 是否显示底图文字标注,默认显示
|
||||
final bool? labelsEnabled;
|
||||
|
||||
///是否显示指南针
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
|
||||
import 'dart:async';
|
||||
import 'dart:math';
|
||||
|
||||
import 'package:x_amap_base/x_amap_base.dart';
|
||||
import 'package:amap_map/src/core/amap_flutter_platform.dart';
|
||||
|
@ -147,22 +146,27 @@ class MethodChannelAMapFlutterMap implements AMapFlutterPlatform {
|
|||
return _events(mapId).whereType<CameraPositionMoveEndEvent>();
|
||||
}
|
||||
|
||||
/// Camera 地图点击回调
|
||||
Stream<MapTapEvent> onMapTap({required int mapId}) {
|
||||
return _events(mapId).whereType<MapTapEvent>();
|
||||
}
|
||||
|
||||
/// Camera 地图长按回调
|
||||
Stream<MapLongPressEvent> onMapLongPress({required int mapId}) {
|
||||
return _events(mapId).whereType<MapLongPressEvent>();
|
||||
}
|
||||
|
||||
/// Camera 地图POI点点击回调
|
||||
Stream<MapPoiTouchEvent> onPoiTouched({required int mapId}) {
|
||||
return _events(mapId).whereType<MapPoiTouchEvent>();
|
||||
}
|
||||
|
||||
/// Camera 地图锚点点击回调
|
||||
Stream<MarkerTapEvent> onMarkerTap({required int mapId}) {
|
||||
return _events(mapId).whereType<MarkerTapEvent>();
|
||||
}
|
||||
|
||||
/// Camera 地图锚点拖拽结束回调
|
||||
Stream<MarkerDragEndEvent> onMarkerDragEnd({required int mapId}) {
|
||||
return _events(mapId).whereType<MarkerDragEndEvent>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue