我想在谷歌地圖標記信息窗口上設置一些顯示/隱藏動作。我這樣做是通過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)
}
});
有人能幫忙嗎?
它的工作或沒有? – cracker