编写函数
tapMap(e) {
this.viewshow = false // 隐藏信息框F
console.log('点击返回经纬度:', e.detail
}
使用
<map id="mapId" ref="mapId" style="width: 750rpx; height:calc(100vh - 120rpx);" :circles="circles" :polyline='polyline' :scale="scale"
:latitude="latitude" :longitude="longitude" :markers="markers" @tap="tapMap">