The suggestion of Mike worked for me even in IE!. However, the example provided by Mike does not work properly when the map is panned. (I suppose Mike did not spend time for that). I provide the following example that works even when the map moves in case somebody reads this discussion and would like to have a properly working example. Here it is:
http://www.cs.bilkent.edu.tr/~alptug/domListenerFixed.htm Once again, thanks a lot Mike. I now have the behavior I want. On May 26, 7:41 pm, Mike Williams <nos...@econym.demon.co.uk> wrote: > Wasn't it bratliff who wrote: > > > > > > >> Furether research seems to suggest that e.clientX and e.clientY might > >> work in all browsers, so all you have to do is subtract the position of > >> the map container. > > >Except Internet Explorer which uses "window.event" instead of the > >first argument in the function call. > > >function Click(e) > >{ > > x=window.event ? window.event.x : e.layerX; > > y=window.event ? window.event.y : e.layerY; > >} > > >For a static map example: > > > www.polyarc.us/poly > > http://econym.org.uk/temp/domlistener.htm > seems to work in MSIE using just e.clientX and e.clientY > > -- > Mike Williamshttp://econym.org.uk/gmap --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to Google-Maps-API@googlegroups.com To unsubscribe from this group, send email to google-maps-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---