That example is using addDomListener instead of addListener, and it's
adding the event to the container, not to the map object. All
different from what your post says.

Please read the posting guidelines and post a link to ***your*** map,
which exhibits the problem, and not to someone else's page, over which
you have no control.

--
Marcelo - http://maps.forum.nu
--



On Oct 25, 8:26 am, Shane <[EMAIL PROTECTED]> wrote:
> 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/3...http://groups.google.com/group/Google-Maps-API/browse_thread/thread/5...http://groups.google.com/group/Google-Maps-API/browse_thread/thread/9...http://groups.google.com/group/Google-Maps-API/browse_thread/thread/7...
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to