Will do. Thanks for the info.

Nevin

On Sep 10, 1:55 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> GInfoWindow is supposed to be an Overlay and returned from
> event.getOverlay(), but don't count on it working because gwt-maps doesn't
> implement InfoWindow as a subclass of Overlay.
>
> Could you please add this as an issue 
> onhttp://code.google.com/p/gwt-google-apis?
>
> On Wed, Sep 10, 2008 at 3:21 PM, Nevin Freeman <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > 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
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~---------~--~----~------------~-------~--~----~
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