> But I get an undefined result. After some time I can get a proper
> result.

Yup.
   http://econym.org.uk/gmap/async.htm

> How do I get the code to wait for a valid result?

You don't.  You put the code that needs to 'do something' with the
result in the getLatLng callback function.

cheers, Ross K

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