wx.openLacation 开发者工具有查看周边 手机上没有

发布于 6 年前作者 rliang6563 次浏览最后编辑 6 年前来自 ask
  • 当前 Bug 的表现(可附上截图)

手机上没有查看周边的功能

  • 预期表现

  • 复现路径

  • 提供一个最简复现 Demo

wx.getLocation({

type: ‘gcj02’, // 返回可以用于wx.openLocation的经纬度

success(res) {

const latitude = res.latitude

const longitude = res.longitude

wx.openLocation({

latitude,

longitude,

scale: 18,

name:‘南湖路’,

address:‘13333333’,

});

}

});

1 回复
weihan
weihan1 楼5 年前

以真机为准