Hi. Could you add an API event listener for the Map 'mousemove' event:
http://code.google.com/apis/maps/documentation/javascript/reference.html#Map google.maps.event.addListener(myMap, 'mousemove', function(mouseEvent) { lastMousePosition=mouseEvent.latLng; }); lastMousePosition would have to be defined as a global variable in your code. Then add a DOM event listener for the mouse right click event. Whenever the DOM event is triggered you will have the last mouse position available. Or does the API 'consume' the right click event so it will not propogate to your DOM listener? Martin. On Jan 18, 12:58 pm, Eduardo <[email protected]> wrote: > hello, > > i am working in a system and I need to create a custom context menu when > the user right click *inside* a circle. i have noticed that a right click > on the map triggers an event with the XY position defined, and then I can > create a menu for the map. But when the rightclick is inside a circle, the > event doesn't have the XY position, and I can't show the menu at the right > position!! > > anyone knows how to get the screen XY position when the click event is > triggered?! -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
