It seems the mousedown is consumed by the Maps API to enable dragging
support.

I did a search on the Google-Maps-API group and found a number of
suggestions.

http://groups.google.com/group/Google-Maps-API/search?group=Google-Maps-API&q=mousedown&qt_g=Search+this+group


On Tue, Oct 28, 2008 at 12:34 PM, Steve <[EMAIL PROTECTED]> wrote:

>
> I'm using GWT 1.5.3 with gwt-maps-1.0 to put a map on my web page.
>
> I'd like the user to be able to drag out a box on the map by clicking
> the left mouse button on the upper left corner of the box and dragging
> it to the lower right corner, with rubber-banding so the box displays
> during the drag.
>
> Then I'd like to read off the lat and lon of the corners of the user's
> box so I know what area they selected (I'll create a Polygon and do an
> addOverlay on the MapWidget to display the box).
>
> I'm wrapping the MapWidget in a FocusPanel so I can grab the mouse
> events. I'm getting mouseUp and mouseMove events, but not mouseDown
> events.
>
> I do a setDraggable(false) on the MapWidget before putting the
> MouseListener on the FocusPanel.
>
> Is there anything else I need to do?
>
>
> Steve
>
> >
>


-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://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 Google-Web-Toolkit@googlegroups.com
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