Google Maps API - InfoBubble will not close - close () does not work

I work with Google Maps InfoBubble . Everything works fine except for the close() function. I used to use InfoWindows and it worked there.

BTW, Firebug does not report errors.

My InfoBubble is as follows:

 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 run the following command, all the bubbles will only be open:

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

Any ideas?

Thanks,

Ron

+4
source share
1 answer

What about infoBubble.setMap(null) ?

+3
source

Source: https://habr.com/ru/post/1433356/


All Articles