> foreach($ref as $addr)
...
>                         echo "setTimeout(showAddress, 5000);";
>                 }
>         }
>
> Do I have a logic error?

Yes.   Calling showAddress() from a timeeout just delays the call.  It
doesn't stop executing the loop, so it quickly goes around and sets up
the next showAddress call, to be triggered a millisecond or so after
the first.
So, the loop runs through all your data and finishes.  5 seconds
later, a big batch of showAddress() are executed almost
simultaneously.

Have another look at
http://econym.org.uk/gmap/geomulti.htm

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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