the listener is passed a mouse event which has latLng and pixel
properties:

http://code.google.com/apis/maps/documentation/v3/events.html#EventArguments


On May 4, 3:01 am, amar <[email protected]> wrote:
> thanks for the reply sir.
>
> I have written the code for v2, because it was working there.. i want
> its equivalent for v3. please help if you can..
>
> I have tried this..
>         google.maps.event.addListener(map, 'click', function(overlay ,
> latlng) {
>             myLatitude = latlng.lat();
>             //myLongitude = latlng.lng();
>             alert('hi! ' + myLatitude);
>         });
> but no results..
>
> thanks.
>
> --
> 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 
> athttp://groups.google.com/group/google-maps-js-api-v3?hl=en.

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