wx.getLocation无法获取altitude

发布于 7 年前作者 li2112247 次浏览最后编辑 7 年前来自 ask

wx.getLocation({

type: ‘wgs84’,

altitude: true,

success: (res) => {

console.log(res.altitude)

}

})

安卓系统

1 回复
jing31
jing311 楼5 年前

你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。