微信小程序获取当前位置地图,然后通过经纬度获取详细地址信息
发布时间:2020-12-14 19:43:36 所属栏目:资源 来源:网络整理
导读:// 获取当前地图,设置经纬度。 wx.getLocation({ success: (res) => { console.log(res); this.setData({ latitude: res.latitude,longitude: res.longitude }); var locationString = res.latitude + "," + res.longitude; wx.request({ url: 'https://api
// 获取当前地图,设置经纬度。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |