小程序地图导航功能的实现,小程序如何在地图选择地址
微信小程序如何在地图选择地址并返回经纬度?微信小程序的地址管理中,经常需要获取地址的详细地址信息和地址经纬度信息
实现效果如下:
var that = this
wx.chooseLocation({
success: function (res) {
// success
console.log(res,"location")
that.setData({
hasLocation: true,
location: {
longitude: res.longitude,
latitude: res.latitude
},
detail_info: res.address,
wd: res.latitude,
jd: res.longitude
})
},
fail: function () {
// fail
},
complete: function () {
// complete
}
})
HiShop小程序工具提供多类型商城/门店小程序制作,可视化编辑 1秒生成5步上线。通过拖拽、拼接模块布局小程序商城页面,所看即所得,只需要美工就能做出精美商城。
更多小程序资讯,尽在:www.hishop.com.cn/xiaocx/
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

