> If you want event.X and event.Y relative to the document use
> GEvent.addDomListener on the map container instead of

That was so much help.
But I couldn't make it work in all browsers... I'm using JQuery
library to avoid fighting between the differences of each the
browser...

What I'm posting here works perfect with chrome and IE, but not with
Firefox... I really don't understand why because JQuery
documentation's says that it should work in every browser in market...

GEvent.addDomListener(marcador,'click',
function(event)
{       posx=event.clientX
        posy=event.clientY
        alert(posx+" "+posy);
});

I also found this post 
https://groups.google.co.kr/group/Google-Maps-API/browse_thread/thread/203781de5fa24d62,
where one guy explains how to do what I want, but it doesn't work in
Firefox too...

function Click(e)
{
        x=window.event ? window.event.x : e.layerX;
        y=window.event ? window.event.y : e.layerY;

}

I'm really lost, but I'm going to keep on trying...

Bye!
--~--~---------~--~----~------------~-------~--~----~
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