     }
     
     @IBAction func onClearDirections(_ sender: Any) {
+        // Remove all annotations related to directions
         clearARDirections()
         clear2DMapDirections()
+        
+        // Restore the number of Places pins depending on 10 or 20 selected in MoreControl
+        //changeNumPins()
+        
+        // Perform first search since the user may have changed locations
+        performFirstSearch()
+        
         clearDirectionsButton.isHidden = true
     }
 

        if let existingAnnotations = mapView.annotations {
            mapView.removeAnnotations(existingAnnotations)
        }
    }
    
    // MARK: - Directions

        }
        clearARDirections()
        clear2DMapDirections()
        hidePlacesExcept(place: place)
        queryDirections(with: place.location)
        clearDirectionsButton.isHidden = false
    }
