creating markers in loop - Infowindow does not open when inside an click Listener
i have a google map with multiple markers and each has its own infowindow. nothing happens when i click. fyi: i know it the listener fires because i did put a alert in ther before and it worked. Problem Code is: google.maps.event.addListener(point[i], 'click', function() { infowindow[i] = new google.maps.InfoWindow({content: contentString[i] }); infowindow[i].open(map,point[i]); }); if i only do infowindow[i] = new google.maps.InfoWindow({content: contentString[i] }); infowindow[i].open(map,point[i]); it works. but not in my addListener function. i guess ther is something that googlemaps