uni.getLocation({
type: 'gcj02',
geocode: true,
success: function(res) {
_this.lat = res.latitude;
_this.lng = res.longitude;
_this.address = res.address.province + res.address.city + res.address
.district + res
.address.street + res.address.streetNum + res.address.poiName;
_this.init();
},
fail: function(err) {

- 发布:2021-12-22 14:05
- 更新:2021-12-22 21:17
- 阅读:1040
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.0.1
HBuilderX类型: Alpha
HBuilderX版本号: 3.3.2
手机系统: Android
手机系统版本号: Android 11
手机厂商: 小米
手机机型: 10s
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
获取定位就出现
获取定位就出现
预期结果:
正常获取定位信息
正常获取定位信息
实际结果:
获取定位突然报错,之前好用,更新版本后就这样了
{
"errMsg": "getLocation:fail not support WGS84",
"errCode": 18,
"code": 18
}
{
"errMsg": "getLocation:fail not support GCJ02",
"errCode": 18,
"code": 18
}
获取定位突然报错,之前好用,更新版本后就这样了
{
"errMsg": "getLocation:fail not support WGS84",
"errCode": 18,
"code": 18
}
{
"errMsg": "getLocation:fail not support GCJ02",
"errCode": 18,
"code": 18
}
bug描述:
获取定位突然报错,之前好用,更新版本后就这样了
{
"errMsg": "getLocation:fail not support WGS84",
"errCode": 18,
"code": 18
}
{
"errMsg": "getLocation:fail not support GCJ02",
"errCode": 18,
"code": 18
}
2 个回复
d***@whaiw.com
一样的问题 +1
DCloud_UNI_Anne
查看相关问题:https://ask.dcloud.net.cn/question/136642