Close the infowindow with a button_click or any other event

Sep 18, 2009 at 10:52 AM

Hey

I would like to know if someone can show me how to close the InfoWindow from codebehind with a button click or any other event...Please Please!!!

Kind Regards

Coordinator
Sep 18, 2009 at 1:02 PM

Hi,

So, lets say the GoogleMap control on your page has ID=GoogleMap1 and your button ID is btnCloseInfoWindow.
Here is an example of how when button is clicked to close the info window of the first marker:

btnCloseInfoWindow.OnClientClick = "GoogleMap1.Markers[0].closeInfoWindow()"

Regrads,

Velio


 

 

Sep 18, 2009 at 5:46 PM

Hey Velio

Thank you so much for your  help ...its working great.. :)

Thanks for such an excellent control

Regards

Jake