nvue map controltap 点击无效
<map class="gaode-map" latitude="latitude" longitude="longitude" scale="scale" markers="markers" controls="controls" show-location="true"@markertap="markertap"
@controltap="controltap"
></map>
controls: [
{ //在地图上显示控件,控件不随着地图移动
id: 1, //控件id
iconPath: '../../static/img/map-top1.png', //显示的图标
position: { //控件在地图的位置
left: 310,
top: 8,
},
}
]
controltap:function(res){
// 点击不生效,没有打印出来
console.log('controltap',res)
}
0 个回复