'; var infowindow = new google.maps.InfoWindow({ content: contents }); var cityCircle = new google.maps.Circle({ strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 2, fillColor: '#FF0000', fillOpacity: 0.35, map: map, center: lat_lng, radius: radiusCircle, draggable:false }); google.maps.event.addListener(cityCircle, 'click', function(ev){ infowindow.setPosition(cityCircle.getCenter()); infowindow.open(map); }); for (i = 1; i < locations.length; i++) { if(locations[i][1]!=0){ let lat_lng = {lat: locations[i][1], lng: locations[i][2]}; let cityCircle = new google.maps.Circle({ strokeColor: '#FF0000', strokeOpacity: 0.8, strokeWeight: 2, fillColor: '#FF0000', fillOpacity: 0.35, map: map, center: lat_lng, radius: radiusCircle, draggable:false }); let contents = '
HITEK Dealer '+locations[i][3]+'
Get a Quote
'; let infowindow = new google.maps.InfoWindow({ content: contents }); google.maps.event.addListener(cityCircle, 'click', function(ev){ infowindow.setPosition(cityCircle.getCenter()); infowindow.open(map); }); } } } }