That piece of code does not change the map's behavior. Are you suggesting that I wait for the response from the server after each request before making the next one? Wouldn't this result in significantly slower load times?
It is only using the static data because I haven't written the code to pull it from my database yet. On Feb 8, 6:20 pm, Esa <[email protected]> wrote: > var marker = new GMarker(point, { icon: iconSet[data[i][1]] }); > > Geocoding is asynchronous. Value of var i is not what you expect when > the callback function executes. You should increment i and trigger > next request by the callback function. > > I don't see why are you using client side geocoding for static > addresses. Generally it is recommended to geocode your addresses in > advance and use those coordinates. Page loading is much faster. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
