Is there a way to get latLng from a Marker using eventListerner?

For instance... this code works using a map object
        google.maps.event.addListener(map, 'click', function(event) {
                alert(event.latLng);
        });

But using a maker object its not working
        google.maps.event.addListener(marker, 'click', function(event) {
                alert(event.latLng); // undefined
        });

The docs 
http://code.google.com/apis/maps/documentation/javascript/reference.html#Marker
clearly says that the event generates a MouseEvent object (same as Map
object) but its not working.

TIA.

-- 
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.

Reply via email to