提交 fac08ff4 authored 作者: 史晓晨's avatar 史晓晨

feat:逆地址编码-修改范湖类型;

上级 febb0d12
...@@ -38,7 +38,7 @@ class ClxMapPoiSearch { ...@@ -38,7 +38,7 @@ class ClxMapPoiSearch {
} }
/// 逆地址编码 /// 逆地址编码
Future<Map<String, dynamic>?> geocodeSearch(double latitude, double longitude) { Future<Map?> geocodeSearch(double latitude, double longitude) {
return ClxMapPoiSearchPlatform.instance.geocodeSearch(latitude, longitude); return ClxMapPoiSearchPlatform.instance.geocodeSearch(latitude, longitude);
} }
......
...@@ -55,7 +55,7 @@ class MethodChannelClxMapPoiSearch extends ClxMapPoiSearchPlatform { ...@@ -55,7 +55,7 @@ class MethodChannelClxMapPoiSearch extends ClxMapPoiSearchPlatform {
/// 逆地址编码 /// 逆地址编码
@override @override
Future<Map<String, dynamic>?> geocodeSearch(double? latitude, double? longitude) async { Future<Map?> geocodeSearch(double? latitude, double? longitude) async {
var result = await methodChannel.invokeMethod<dynamic>('GeocodeSearch', <String, dynamic>{ var result = await methodChannel.invokeMethod<dynamic>('GeocodeSearch', <String, dynamic>{
'latitude': latitude, 'latitude': latitude,
'longitude': longitude, 'longitude': longitude,
......
...@@ -54,7 +54,7 @@ abstract class ClxMapPoiSearchPlatform extends PlatformInterface { ...@@ -54,7 +54,7 @@ abstract class ClxMapPoiSearchPlatform extends PlatformInterface {
} }
/// 逆地址编码 /// 逆地址编码
Future<Map<String, dynamic>?> geocodeSearch(double? latitude, double? longitude) async { Future<Map?> geocodeSearch(double? latitude, double? longitude) async {
throw UnimplementedError('geocodeSearch() has not been implemented.'); throw UnimplementedError('geocodeSearch() has not been implemented.');
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论