收藏
回答

wx.chooseLocation真机为什么获取不到坐标

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.chooseLocation 客户端 7.0.3 2.4.0

- 当前 Bug 的表现(可附上截图)


- 预期表现


- 复现路径


- 提供一个最简复现 Demo


- 当前 Bug 的表现(可附上截图)

原来都是好好的,现在发现wx.chooseLocation真机得不到地址坐标,无法进行测距等操作(只有选择下部的具体地址才可以)!

代码为:

  wx.chooseLocation({

success: function (res) {

  console.log("resl==",res.longitude,"res.latitude==",res.latitude);

   that.setData({

mylong:res.longitude,

mylat:res.latitude,

   })

},

 

fail: function () {

},

complete: function (res) {

console.log("ces==",res);

}

  })


结果:




最后一次编辑于  2019-07-02
回答关注问题邀请回答
收藏

1 个回答

  • 是小白啊
    是小白啊
    2019-07-02

    麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

    2019-07-02
    有用
    回复 5
    • 2019-07-02

      https://developers.weixin.qq.com/s/S5Zxaymn709k

      2019-07-02
      回复
    • 是小白啊
      是小白啊
      2019-07-02回复

      需要选择一下的

      2019-07-02
      回复
    • 2019-07-02回复是小白啊

      以前不需要选择下面的地址,只要在地图上选一个点就可以得到坐标了呀。难道现在改了?

      2019-07-02
      回复
    • 2019-07-02回复是小白啊

      如果是这样的话,只有地图标明地址的点才可以得到坐标,其它绝大部分都得不到坐标了啊~那像选点测距,给朋友发送指定点坐标的功能都不能用了啊

      2019-07-02
      1
      回复
    • Aero
      Aero
      2019-08-15
      是的这个是个bug
      2019-08-15
      回复
登录 后发表内容