Tag: infowindow openinfowindowhtml

使用jQuery fadeIn和fadeOut的Google Maps API V3 InfoBox

我已经在网上搜索了高低,并且无法找到使用jQuery来淡化Google地图中的InfoBox / InfoWindow而不是实际框/窗口内容的教程或示例。 这是我的代码,我不确定我做错了什么,但似乎也不对。 google.maps.event.addListener(marker, ‘mouseover’, function() { ib.setContent(html); ib.open(map, marker); ib.setValues({type: “point”, id: 2}) var idName = marker.get(“id”); //I was trying to the id’s of the elements here var boxName = ib.get(“id”); //to use in my jQuery jQuery(idName ).mouseover(function() { jQuery(boxName ).fadeIn(‘slow’, function() { // Animation complete }); }); });