1. 文章
  2. 文章详情

百度地图 标注点(marker)、文本标注(label) 添加点击事件

百度地图 标注点(marker)添加点击事件

marker.addEventListener("click", function(){          
this.openInfoWindow(infoWindow); //提示信息
});

百度地图 文本标注(label) 添加点击事件

label.addEventListener("click", function(){          
map.openInfoWindow(infoWindow); //提示信息
});

发表评论

登录后才能评论

评论列表(0条)