我想在谷歌地图标记信息窗口上设置一些显示/隐藏动作。我这样做是通过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