title: Retain map zoom level while there is a change in location
body: <p>I am using a MKMapView application. but when zoom into the map to the current user location, the map zooms well. But when there is a change in current location, the map automatically zooms out to the original position where it all started. How can I retain the same level of zoom even when the location changes. Thank you.</p>
  
  <pre><code>func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
      let location = locations.last
      let latestlocation:CLLocation = locations[locations.count-1]
      let a = latestlocation.coordinate.latitude
      let b = latestlocation.coordinate.longitude
      let center = CLLocationCoordinate2D(latitude: a, longitude: b)
      let region = MKCoordinateRegion(center: center, span: MKCoordinateSpanMake(0.05, 0.05))
      self.mapView.setRegion(region, animated: false)
      mapView.setUserTrackingMode(.follow, animated: true)
      self.mapView.showsUserLocation = true
  }
  </code></pre>