i have a some data i’d like to spit out on a map with json. the markers are plotted out, so i know it’s scoping there, which is why i’m struggling with this. the data is overwriting each other.
infowindow.setContent(locations[i][0], locations[i][6]);
that will only show the vars for locations[i][6];, overwriting locations[i][0].
i’m pretty sure it’s a scope issue, but i could be way off. i threw it up here: http://jsfiddle.net/jalbertbowdenii/pGBZD/
The
setContentmethod only takes one argument.Any additional arguments will be ignored. If you want to include both location indices in your pop-up bubble, you can try this: