Hello all! I'm doing a programming project in which I pull data from
Facebook, and do whatever I can with it to display it in interesting
ways. One of the things I'm trying to do is to pull "hometown" data,
and put it all onto a map. Unfortunatly, because of the limit on
frequent requests, most of the hometowns fail, because it goes through
the array too quickly. Does anyone know how I can delay the loop long
enough to get a higher success rate?

In addition, after the loop, I would like the map to zoom out and
center over the US as a whole. I tried that with the line after the
for-loop, but it doesnt always work. Is there a better way to do this?

I'm doing the whole project using FlexBuilder3, so that would be the
limitation. Here is the loop as it stands:

for (i = 0; i < numberOfHometowns; i++) {
    geocoder.geocode(locationArray[i]);
}
map.setCenter(new LatLng(39.4701, -98.2844), 3,
MapType.NORMAL_MAP_TYPE);

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