function clearCourtsMarkers() {
  for (let i = 0; i < courtsMarkers.length; i++) {
    courtsMarkers[i].setMap(null);
  }
  courtsMarkers = [];
}
/** clear the markers (so they can be dropped again) */
clear the markers (so they can be dropped again)
clear the markers ( so they can be dropped again )
function clearCourtsMarkers() {
  for (let i = 0; i < courtsMarkers.length; i++) {
    courtsMarkers[i].setMap(null);
  }
  courtsMarkers = [];
}
function clearCourtsMarkers ( ) { for ( let i = 0 ; i < courtsMarkers . length ; i ++ ) { courtsMarkers [ i ] . setMap ( null ) ; } courtsMarkers = [ ] ; }
clear the markers (so they can be dropped again)
clear the markers ( so they can be dropped again )