Locations (TEST)

function initMap() { var center = {lat: 34.052235, lng: -118.243683}; var locations = [ ['Philz Coffee
\ 801 S Hope St A, Los Angeles, CA 90017
\ Get Directions', 34.046438, -118.259653], ['Philz Coffee
\ 525 Santa Monica Blvd, Santa Monica, CA 90401
\ Get Directions', 34.017951, -118.493567], ['Philz Coffee
\ 146 South Lake Avenue #106, At Shoppers Lane, Pasadena, CA 91101
\ Get Directions', 34.143073, -118.132040], ['Philz Coffee
\ 21016 Pacific Coast Hwy, Huntington Beach, CA 92648
\ Get Directions', 33.655199, -117.998640], ['Philz Coffee
\ 252 S Brand Blvd, Glendale, CA 91204
\ Get Directions', 34.142823, -118.254569] ]; var map = new google.maps.Map(document.getElementById('map'), { zoom: 9, center: center }); var infowindow = new google.maps.InfoWindow({}); var marker, count; for (count = 0; count < locations.length; count++) { marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[count][1], locations[count][2]), map: map, title: locations[count][0] }); google.maps.event.addListener(marker, 'click', (function (marker, count) { return function () { infowindow.setContent(locations[count][0]); infowindow.open(map, marker); } })(marker, count)); } }