wx.openLocation 打开 ios蓝屏 定位失败
发布于 6 年前 作者 gang75 9966 次浏览 来自 问答



wx.getLocation({

type: 'gcj02',

success: function (res) {

wx.hideLoading();

wx.openLocation({

latitude: parseFloat(item.longitude),

longitude: parseFloat(item.dimension),

name: item.name,

address: item.address

})

}, fail: function (res) {

wx.hideLoading();

}

})

1 回复

请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

回到顶部