You'd still have the same problem if you read an XML file rather than using an SQL feed.
The easiest and most efficient solution is to geocode your doctors once and store their coordinates in the SQL database. Then when you read the SQL feed for a particular zip code, you can include the coordinates in the feed and use them immediately. The fact that your markers display the last address in the loop may well be caused by failing to obtain Function Closure on the relevant variables. Always use a createMarker() function to create your markers and hold Function Closure for you. [If you need more specific detail on that, post a link to your page so that we can see exactly what's going wrong.] -- http://econym.org.uk/gmap The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
