     }
 
     open func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
-        mapView.removeAnnotations(mapView.annotations)
+        mapView.removeAnnotations(removableAnnotations)
     }
 
 }


    open func mapView(_ mapView: MKMapView, didDeselect view: MKAnnotationView) {
        guard view is MKPinAnnotationView else { return }
        mapView.showAnnotations(mapView.annotations, animated: false)
    }

    open func mapView(_ mapView: MKMapView, didSelect view: MKAnnotationView) {

     Doing so would fail with a warning about 'un-added' annotations.
     */
    fileprivate func updateAnnotations() -> [MKAnnotation] {
        mapView.removeAnnotations(removableAnnotations)
        var addiblePlacemarks = resultsViewController.mapItems.map { $0.placemark }
            .filter(isNonSelectedPlacemark)
        mapView.addAnnotations(addiblePlacemarks)
        return addiblePlacemarks
    }

    /**
