I\'ve followed this tutorial to create a custom Google Map. I\'ve included a few other elements such as linking it up to Wordpress and clustering the markers.
The issue is with your closure. The for loop isn't handling your scope correctly. Extract all the code from inside the for loop into a separate function and the closure should work.