title: Removing Annotation using the Annotations Coordinates
body: <p>I am using Firebase to get annotations on to mapView.  This is done through the following:</p>
  
  <pre><code> func getMarkers() {
  
      dbRef.observe(.value, with: { (snapshot) in
  
          for buildings in snapshot.children {
  
              let buildingsObject = Buildings (snapshot: buildings as! FIRDataSnapshot)
  
              let latDouble = Double(buildingsObject.latitude!)
              let lonDouble = Double(buildingsObject.longitude!)
  
              self.telephoneNumber = buildingsObject.number
  
              let annotation = myAnnotationView.init(title: buildingsObject.content!, coordinate: CLLocationCoordinate2D.init(latitude: latDouble!, longitude: lonDouble!), duration: buildingsObject.duration!, cost: buildingsObject.cost!, info: "", timestamp: buildingsObject.timestamp, contactNumber: buildingsObject.number!, addedBy: buildingsObject.addedByUser!)
  
              self.mapView.addAnnotation(annotation)
  
              print (snapshot)
  
          }})}
  </code></pre>
  
  <p>myAnnotationView is my custom class for the AnnotationView.<br>
  adding Annotations to the map no problem.  The issue arrises where if the user needs to remove his annotation it needs to be removed from the mapView. I have a table with all the users annotations in where he can delete if they so choose. This updates to firebase console and the data is removed.  However, the annotation is still on the map and only when you reset the app the annotation will update.</p>
  
  <p>I have a method to observe the deletedChilds which im getting a correct snapshot of but I cant seem to reference the annotation which needs to be removed.</p>
  
  <pre><code>func removeMarkers() {
  
      dbRef.observe(.childRemoved, with: { (snapshot) in
  
                          print (snapshot)
  
      })}
  </code></pre>
  
  <p>the snapshot being spat out is here:</p>
  
  <pre><code>Snap (-KTo3kdGGA_-rfUhHVnK) { //childByAutoID
      addedByUser = TzDyIOXukcVYFr8HEBC5Y9KeOyJ2;
      content = "Post";
      cost = 500;
      duration = Monthly;
      latitude = "25.0879112000924";
      longitude = "55.1467777484226";
      number = 1234567890;
      timestamp = "Tue 11 Oct";
  }
  </code></pre>
  
  <p>So my question is how can I remove the annotation which is in this snapshot? Can I somehow reference its coordinates and removeAnnotation that way?  I have looked through Stack but its mostly mentioning how to remove all annotations.</p>
  
  <p>Many thanks. D</p>