我已經搜索了網頁的高低,並且一直沒能找到一個教程或者使用jQuery來淡入Google地圖中的InfoBox/InfoWindow的例子,而不是實際的內容盒子/窗口。這是我的代碼,我不確定我做錯了什麼,但是看起來也不對。Google Maps API V3 InfoBox使用jQuery淡入淡出
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
});
});
});
我在想這些問題,http://themeforest.net/item/the-navigator-premium-wp-location-guide-blog/full_screen_preview/397351。所以它可能無法使用本機信息框/窗口控件,但也許使用自定義? – intheblue25