私はウェブを高低で検索しましたが、実際のボックス/ウィンドウのコンテンツではなく、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
});
});
});