// Helper method that will check if an earthquake marker was clicked on
 // and respond appropriately
 private void checkEarthquakesForClick() {
   if (lastClicked != null) return;
   // Loop over the earthquake markers to see if one of them is selected
   for (Marker m : quakeMarkers) {
     EarthquakeMarker marker = (EarthquakeMarker) m;
     if (!marker.isHidden() && marker.isInside(map, mouseX, mouseY)) {
       lastClicked = marker;
       // Hide all the other earthquakes and hide
       for (Marker mhide : quakeMarkers) {
         if (mhide != lastClicked) {
           mhide.setHidden(true);
         }
       }
       for (Marker mhide : cityMarkers) {
         if (mhide.getDistanceTo(marker.getLocation()) > marker.threatCircle()) {
           mhide.setHidden(true);
         }
       }
       return;
     }
   }
 }