 <p>You may try this</p> <pre><code>var map, locations = [ [43.82846160000000000000, -79.53560419999997000000], [43.65162010000000000000, -79.73558579999997000000], [43.75846240000000000000, -79.22252100000003000000], [43.71773540000000000000, -79.74897190000002000000] ]; var myOptions = { zoom: 6, center: new google.maps.LatLng(locations[0][0], locations[0][1]), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map($('#map')[0], myOptions); var infowindow = new google.maps.InfoWindow(), marker, i; for (i = 0; i &lt; locations.length; i++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i][0], locations[i][1]), map: map }); google.maps.event.addListener(marker, 'click', (function(marker, i) { return function() { infowindow.setContent('Current location is: '+ locations[i][0]+', '+locations[i][1]); infowindow.open(map, marker); } })(marker, i)); } </code></pre> <p><a href="http://jsfiddle.net/X5r8r/652/" rel="nofollow"><strong>DEMO</strong></a>.</p>