Hi Larry,

thanx for the help. It works fine now.

Cheers,
Don

PS: for anyone with the same problem: I took the above example-page
offline. here's it's content with the fix included:

------------------------------------------
<html>
<head>
<script type="text/javascript" src="http://www.google.com/jsapi?
key=YOUR_KEY_HERE"></script>
</head>
<body>
<a href="http://maps.google.com?q=Dakhla"; target="google.maps">search
for Dakhla on maps.google.com</a><br/><br/>
<a href="#" onclick="test(); return false;">reverse geocode
"21.905017,-16.78997" (Dakhla) with the GClientGeocoder</a>
<script type="text/javascript">

google.load("maps", "2");

function test(){
   var geocoder = new GClientGeocoder();
   var latlng = new google.maps.LatLng(21.905017,-16.78997);

   # here was the problem:
   geocoder.getLocations(latlng, showResult);

   # this is Larry's fix: dont use the LatLng-Object, but just a
string.
   geocoder.getLocations(latlng.lat() + "," + latlng.lng(),
showResult);

};
function showResult(response){
   alert('responseCode = ' + response.Status.code);
};
</script>
</body>
</html>
----------------------------------------------

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