> I'm pretty useless when it comes to JS, knowing only PHP, so my > apologies if this is a simple fix. The code I'm looping within the > page to render the map is below. At the moment I have 1 instance of > this code per map entry within the content of the HTML (please see my > page for more info).
For some reason I can't do a 'view source' on your page, which is odd but probably my problem. But your approach is flawed ... You can't have many divs all with id='map'. How would the many script sections know which one to operate on? There'll be similar problems with the javascript variables all having the same name etc. You should be looking to put your script into one function, and call it several times with different parameters (like a unique map div id to work on). If you're geocoding multiple addresses every time someone looks at the page, thats a whole other Bad Thing. As is geocoding UK postcodes which for various reasons isn't as accurate as it could be. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
