【发布时间】:2011-10-11 01:08:21
【问题描述】:
我在网上到处搜索,但找不到使用 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
});
});
});
【问题讨论】:
-
我在想一些类似的事情,themeforest.net/item/…。因此,可能无法使用本机信息框/窗口控件,但可能无法使用自定义?
标签: jquery google-maps fade infowindow openinfowindowhtml