I\'m having problems with making multiple markers appear on my Google Map. I\'ve been trying stuff from all over the internet but most of the time the map just breaks.
E
Looks like the OP was able to use Trott's solution, but I couldn't get it to work myself. I found something else that is perhaps simpler and works for me right here. To summarize, wrap the addlistener call in your own function and then call that function from within your loop (wherever you are looping through data or markers). My function is simply...
function listenInfoWindows(marker, infowindow) {
google.maps.event.addListener(marker, 'click', function(){
infowindow.open(map, marker);
}
);
}