Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
amap_flutter_map
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
openSourceLibrary
amap_flutter_map
Commits
29f99a45
提交
29f99a45
authored
11月 10, 2025
作者:
祁增奎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Android增加经纬度
上级
3811c8ab
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
15 行增加
和
1 行删除
+15
-1
CHANGELOG.md
CHANGELOG.md
+3
-0
MapController.java
...rc/main/java/com/amap/flutter/map/core/MapController.java
+1
-0
Utils.java
android/src/main/java/com/amap/flutter/map/core/Utils.java
+10
-0
pubspec.yaml
pubspec.yaml
+1
-1
没有找到文件。
CHANGELOG.md
浏览文件 @
29f99a45
## 【3.0.1】 - 2021-12-02.
*
修复iOS和Android逆地理编码时经纬度为空问题
## 【3.0.0】 - 2021-11-23.
*
AMapWidget初始化时需要传入高德隐私合规配置参数privacyStatement
*
高德SDK合规使用方案请参考:https://lbs.amap.com/news/sdkhgsy
...
...
android/src/main/java/com/amap/flutter/map/core/MapController.java
浏览文件 @
29f99a45
...
...
@@ -504,6 +504,7 @@ public class MapController
*/
@Override
public
void
onRegeocodeSearched
(
RegeocodeResult
result
,
int
code
)
{
LogUtil
.
i
(
CLASS_NAME
,
"getMyLocation===> res: "
+
amap
.
getMyLocation
());
if
(
null
!=
methodChannel
)
{
final
Map
<
String
,
Object
>
arguments
=
new
HashMap
<>(
2
);
LogUtil
.
i
(
CLASS_NAME
,
"camera#searchRegeocode===> result: "
+
result
);
...
...
android/src/main/java/com/amap/flutter/map/core/Utils.java
浏览文件 @
29f99a45
...
...
@@ -5,6 +5,8 @@ import android.util.Log;
import
com.amap.api.services.core.AMapException
;
import
com.amap.api.services.core.PoiItem
;
import
com.amap.api.services.geocoder.RegeocodeAddress
;
import
com.amap.api.services.geocoder.RegeocodeQuery
;
import
com.amap.api.services.core.LatLonPoint
;
import
com.amap.api.services.geocoder.RegeocodeResult
;
import
com.amap.api.services.help.Tip
;
import
com.amap.api.services.poisearch.PoiResult
;
...
...
@@ -110,6 +112,14 @@ public class Utils {
result
.
put
(
"country"
,
address
.
getCountry
());
result
.
put
(
"neighborhood"
,
address
.
getNeighborhood
());
result
.
put
(
"townCode"
,
address
.
getTowncode
());
RegeocodeQuery
query
=
regeocode
.
getRegeocodeQuery
();
if
(
query
!=
null
)
{
LatLonPoint
locationPoint
=
query
.
getPoint
();
if
(
locationPoint
!=
null
)
{
result
.
put
(
"latitude"
,
locationPoint
.
getLatitude
());
result
.
put
(
"longitude"
,
locationPoint
.
getLongitude
());
}
}
}
}
return
result
;
...
...
pubspec.yaml
浏览文件 @
29f99a45
name
:
amap_flutter_map
description
:
高德地图SDK Flutter插件
version
:
3.0.
0
version
:
3.0.
1
homepage
:
https://lbs.amap.com/
environment
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论