The mousedown event on a map never fires. I've tried both binding with
GEvent.addListener:
GEvent.addListener( map, "mousedown", function(){ alert('please
work.'); });
and GEvent.addDomListener:
GEvent.addDomListener( map.getContainer(), "mousedown", function()
{ alert('no dice.'); });
This is not a new problem:
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/399329e185d9238f/f43d94145fd9e726?q=mousedown&lnk=sbp#f43d94145fd9e72
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/5e2235f623da1d31/e48094c309ba78ee?q=mousedown&lnk=sbp#e48094c309ba78e
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/9aa28e58f207ab67/a6deced4af62fcb2?q=mousedown&lnk=sbp#a6deced4af62fcb
http://groups.google.com/group/Google-Maps-API/browse_thread/thread/772e89efdaf2280e/a39a010310a125ab?lnk=gst&q=mousedown#a39a010310a125ab
See Pman's 2007 example link for the same problem:
"Here's the link. I put two maps in there. One for Mouse Up and one
for
Mouse Down event. Mouse Up works fine. In both maps, when the event
fires, the word "hello " should appear at the top of the page to show
that the event took place. As I mentioned, the Mouse Down event
doesn't work on the map. But if you test it on any control on the
mouse down test map, then it works, but on the map body, it doesn't
do
anything. any ideas??"
http://pmanslab.com/projects/gMapTest/mapMouseEventTest.html
The event capturing div overlay solution used in DragZoom will not
work for me. I need to only capture mousedown events on the map
surface itself, and leave access to controls unaffected.
As a side note, mouseup, mousemove, etc events work fine.
Thanks,
Shane
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---