On Aug 24, 10:53 am, Hassan Kadhim <[email protected]> wrote:
> Hi Larry,
>
> Thanks a lot for your help. I looked up more documentation with the
> overlayLatLng.
>
> I found a post in which such a function is used:
>
> GEvent.addListener(map, "click", function(*overlay*, *latlng*){

http://code.google.com/apis/maps/documentation/reference.html#GMap2.click
The map click function contains three arguments, the third will always
return a latitude and longitude (or at least it is supposed to), even
if you click on an overlay.  It will only be an issue (at present) if
you want to do something when someone clicks on an existing GMarker.

  -- Larry


>             if (*latlng*) {
>                 var myHtml = "The Latitude and Longitude values are: <br>" +
> *latlng* + "<br>";
>                 map.openInfoWindow(*latlng*, myHtml);
>             }
>         });
>
> I tried those lattitude and longitude coordinates and it gives the right
> coordinates on the map. So it seems to be working fine.
>
> Thanks for pointing that out.
> hk
--~--~---------~--~----~------------~-------~--~----~
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