On Jun 8, 5:41 pm, Nicolas <[email protected]> wrote:


To prevent that the infowindow is closed when the map itself will be
clicked use this option

marker.openInfoWindowHtml(html, { noCloseOnClick:true });





> What I want
> to do is that the user only would close the infowindow clicking the
> "x" icon


You can do this for example by setting a flag to true as long as an
infowindow remains open and then call a function with onCloseFn that
sets the flag to false.

Have a look at the reference for both of your intentions

http://code.google.com/apis/maps/documentation/reference.html#GInfoWindow


But you should be aware that you'd change the standard behaviour -
especially with the second intention - and even map power users could
be confused.




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to