4

I'm working with an Google Maps InfoBubble. Everything works great except the close() function. Previously I used InfoWindows and there it was working.

BTW, Firebug reports no errors.

My InfoBubble looks like this:

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
    });

If I execute the following command, all bubbles are just open:

infoBubble.open();
infoBubble.close();

Any ideas?

Thanks,

Ron

Ron
  • 22,128
  • 31
  • 108
  • 206

1 Answers1

3

How about infoBubble.setMap(null) ??

Shiridish
  • 4,942
  • 5
  • 33
  • 64