地图导航

<map id="map" longitude="116.715790" latitude="23.362490" markers="{{markers}}"
scale="18" style="width: 100%; height: 300px;" bindtap="click">
</map>


click: function (e) {
var that = this
wx.openLocation({
latitude: that.data.lat,
longitude: that.data.lng,
scale: 18,
name: that.data.dpname,
address: that.data.dizhi
})
},

posted @ 2018-07-24 17:48  zcy1995  阅读(96)  评论(0编辑  收藏  举报