function addMarker(location) {
      const marker = new google.maps.Marker({
        position: location,
        map: map,
      });
      markers.push(marker);
    }
// Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array .
function addMarker(location) {
      const marker = new google.maps.Marker({
        position: location,
        map: map,
      });
      markers.push(marker);
    }
function addMarker ( location ) { const marker = new google . maps . Marker ( { position : location , map : map , } ) ; markers . push ( marker ) ; }
Adds a marker to the map and push to the array.
Adds a marker to the map and push to the array .