On Jan 12, 1:00 pm, "[email protected]" <[email protected]> wrote: > Pretty new to this.... That said, I'd appreciate any help anyone is > able to offer... > > I'm trying to "re-cycle" some code and use it for another purpose, so > I may be putting things together here that have no business being > there or no chance of working.... I'm pulling stuff from a datbase > (that seems to be working great) and trying to display markers at > accident locations. This is where things start falling apart. > > In the old code, I used the for loop to loop through all markers > during their creation (from the XML returned from the database), > however, in this program the for loop will not finish even once.... > > I'm at a loss as to why it will not finish looping..... I've pared my > data from the database down to a manageable 10 records. > > http://bil.ci.billings.mt.us/pwe/City_Projects/maps/ProjectMapTEST5.asp > > Thanks in advance for your help!!
Geocoding is asynchronous. GGeocoderClient.getPoint() has a callback function which returns asynchonously and has nowhere to return a value. See these pages of Mike Williams' tutorial: Part 2 Asynchronous I/O http://econym.org.uk/gmap/async.htm Part 17 Geocoding multiple addresses http://econym.org.uk/gmap/geomulti.htm -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
