I would like my MapClickHandler's code to only execute if the click is
not over an InfoWindow. As far as I can tell, there is not
straightforward way to do this. I would like to do something like:

map.addMapClickHandler(new MapClickHandler() {
                        public void onClick(MapClickEvent event) {
                                if (event.getInfoWindow() == null){
                                         // my code here...
                                }
                        }
                });

But there is no such getInfoWindow() method, only getOverlay(). Has
anyone had do do something similar? If there is a clever way to
achieve this that would be great. So far my only idea is to try and
disable the MapClickHandler when a MOUSEOVER event fires on the main
VerticalPanel within the info window, and then enable it again when I
get a MOUSEOUT. Ideas on how to do this in a clean way would also be
appreciated.

Thanks,
Nevin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to