<view class="mapView" catchtap bindtap="pushMap" data-item="{{item}}">
</view>
在pushMap点击事件中跳转到地图界面 wx.openLocation方法会打开一个地图界面。
pushMap: function(e) {
//开启地图导航
wx.openLocation({
//浮点型的经纬度
latitude: 39.90960456049752,
longitude: 116.3972282409668,
name: '中国首都', //目的地定位名称
scale: 15, //缩放比例
address: '北京天安门广场' //导航详细地址
})
},