Javascript 谷歌地图API-InfoBubble赢得';t close-close()不';行不通

Javascript 谷歌地图API-InfoBubble赢得';t close-close()不';行不通,javascript,google-maps-api-3,google-maps-markers,infobubble,Javascript,Google Maps Api 3,Google Maps Markers,Infobubble,我在谷歌地图公司工作。除了close()函数外,所有功能都运行良好。以前我使用了InfoWindows,它在那里工作 顺便说一句,Firebug没有报告错误 我的InfoBubble如下所示: var infoBubble = new InfoBubble({ map: map, content: $('#balloon-container').html(), position: new google.maps.LatLng(areas[area].lat,

我在谷歌地图公司工作。除了
close()
函数外,所有功能都运行良好。以前我使用了
InfoWindows
,它在那里工作

顺便说一句,Firebug没有报告错误

我的InfoBubble如下所示:

var infoBubble = new InfoBubble({
      map: map,
      content: $('#balloon-container').html(),
      position: new google.maps.LatLng(areas[area].lat, areas[area].lng),
      shadowStyle: 1,
      padding: 0,
      borderRadius: 0,
      arrowSize: 10,
      borderWidth: 1,
      borderColor: '#ccc',
      disableAutoPan: true,
      hideCloseButton: true,
      arrowPosition: 15,
      arrowStyle: 0
    });
如果执行以下命令,所有气泡都将打开:

infoBubble.open();
infoBubble.close();
有什么想法吗

谢谢


Ron

那么
infoBubble.setMap(null)

你的解决方案当然。。。有趣的是,在infobubble源代码中,他们使用了
close()
…LOL。在这种情况下,标记答案将有助于以后的社区从stackoverflow延迟6分钟:)现在我标记了它,再次感谢!