You're trying to using data from an asynchronous service before its
ready.
The 'alert' runs before the data gets back from the geocoder - it
takes time, and teh code doesn't stop and wait for it.
http://econym.org.uk/gmap/async.htm
Put your alert inside the callback function (with the push) to get the
result
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---