If you want event.X and event.Y relative to the document use GEvent.addDomListener on the map container instead of GEvent.addListener on the marker. http://code.google.com/apis/maps/documentation/reference.html#GEvent
...or see this example, which uses the event object to determine if CTRL was down when a marker was clicked: http://maps.forum.nu/temp/gm_control_click.html -- Marcelo - http://maps.forum.nu -- On Aug 13, 8:43 pm, Sandia_Man <[email protected]> wrote: > I need to get the X and Y position of the mouse when I click on a > marker... Is it possible, I've been trying a lot but couldn't achieve > it. > > I tried to do something like this: > > GEvent.addListener(marcador,'click', > function(event) > { alert(event.clientX);} > > ); > mapa.addOverlay(marcador); > > but this is not working because "event" is not what i think it is... > > I'm using V2 api... > > Thanks!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
