我正在尝试在Google地图标记信息窗口中设置一些显示/隐藏操作。我通过mouseover
和mouseout
事件执行此操作,但我与jQuery有一些冲突...所以,代码:
newmarker['infowindow'] = new google.maps.InfoWindow({
content: html
});
google.maps.event.on(newmarker, {
mouseover : function(){
this['infowindow'].open(map, this)
},
mouseout : function() {
this['infowindow'].close(map, this)
}
});
有人可以帮忙吗?