Kbone使用wx-map组件 修改经纬度报错?

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

let that = this;

    window.addEventListener("wxload", async (query) => {

      console.log("serviceQuery wxload", query);

      wx.getLocation({

        type: "wgs84", // 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于 wx.openLocation 的坐标

        success: function (res) {

          that.latitude = res.latitude;

          that.longitude = res.longitude;

        },

      });

Cannot read property ‘_wrapper’ of undefined

0 回复
暂无回复