onMarkerTap(e){
let that = this;
let markers = that.position;
console.log(e.markerId)
for (let i = 0; i < markers.length; i++) {
if(markers[i].id != e.markerId){
markers[i].callout.display = "BYCLICK"
}else{
markers[i].callout.display = "ALWAYS"
}
}
this.drawMap()
}
drawMap(){
let that = this;
let markers = that.position;
that._mapContext.addMarkers({
markers: markers,
clear: true,
fail:function(err){
console.log(err)
}
})
},
这是我为了解决,点聚合缩放地图之后,会有部分标记点击不显示气泡,并且callout不是点击一个显示一个的问题,才想出来的,结果重新绘制标记点会发生闪烁