prasy8 / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
0 stars 0 forks source link

InfoBox acting weird #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:
http://gmaps-samples-v3.googlecode.com/svn-history/r37/trunk/infowindow_custom/i
nfowindow-custom.html

What steps will reproduce the problem?
1. Clicking on map twice will require user to close twice

Expected result:
http://gmaps-samples-v3.googlecode.com/svn/trunk/single-infowindow/single-infowi
ndow.html

Additional comments:
I have searched everywhere for samples on how to close infobox when you click 
outside of the box but can't find it. Also when I click on the marker it builds 
up more and more boxes which cant be closed in 1 click.

Any way to get the InfoBox to behave like the expected result but with the 
possibility to customize the box like the first sample has.

Original issue reported on code.google.com by robert.r...@gmail.com on 21 Jul 2010 at 1:51

GoogleCodeExporter commented 9 years ago
Add a handler for the "click" event to the map and then close all your open 
InfoWindows or InfoBoxes to get the desired effect. This means you will have to 
keep track of which InfoBoxes are open.

Original comment by garylitt...@gmail.com on 8 Jul 2011 at 5:00