> Here is my problem, i returning a list from the server that contains > names of Brazil places. I want to obtain the lat/lng of these places, > put them in an array and send them back to the server. The following > code gives me an empty array but if i un-comment my alerts, everything > seems to be working fine.
That tells you it is a timing problem. The geocoder is asynchronous. See http://econym.org.uk/gmap/async.htm and http://econym.org.uk/gmap/geomulti.htm -- 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.
