function createMap() {
  fetch('/basketball-courts').then(response => response.json()).then((courts) => {
    map = new google.maps.Map(document.getElementById('map-container'), {
      center: { lat: 40.7128, lng: -74.0060 },
      zoom: 10,
      styles: style
    });

    courtsInfo = courts;
  });
}
/** Creates a map and adds it to the page. */
Creates a map and adds it to the page.
Creates a map and adds it to the page .
function createMap() {
  fetch('/basketball-courts').then(response => response.json()).then((courts) => {
    map = new google.maps.Map(document.getElementById('map-container'), {
      center: { lat: 40.7128, lng: -74.0060 },
      zoom: 10,
      styles: style
    });
    courtsInfo = courts;
  });
}
function createMap ( ) { fetch ( '/basketball-courts' ) . then ( response => response . json ( ) ) . then ( ( courts ) => { map = new google . maps . Map ( document . getElementById ( 'map-container' ) , { center : { lat : 40.7128 , lng : - 74.0060 } , zoom : 10 , styles : style } ) ; courtsInfo = courts ; } ) ; }
Creates a map and adds it to the page.
Creates a map and adds it to the page .