1***@189.cn
1***@189.cn
  • 发布:2020-11-09 15:53
  • 更新:2022-11-18 11:31
  • 阅读:744

HBuilderX 20201105版本,打自定义调试基座,获取等位时无法解析当前位置信息,只能获取经纬度。回退到20201014版本后就可以了

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 10

HBuilderX类型: 正式

HBuilderX版本号: 2.9.7

手机系统: iOS

手机系统版本号: IOS 14

手机厂商: 苹果

手机机型: iPhone11

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

操作步骤:

                            type: 'gcj02',  
                            geocode: true,  
                            success: (res) => {  
                                console.log(res)                                  
                            },  
                            fail: (err) => {  
                                console.log(err)  
                            }  
                        })```

预期结果:

address可以正常获取到当前位置

实际结果:

address == null 为true

bug描述:

2020-11-09 15:53 负责人:无 分享
已邀请:
1***@189.cn

1***@189.cn (作者)

uni.getLocation({
type: 'gcj02',
geocode: true,
success: (res) => {
console.log(res)
},
fail: (err) => {
console.log(err)
}
})

bandiaozi

bandiaozi

怎么回退自定义基座sdk版本呢

要回复问题请先登录注册