In my MKMapView
, I am trying to update the MKCoordinateRegion
every time didUpdateLocations
is called with the new location. However, the problem is that when I do this, it zooms out to the original MKCoordinateRegion
that I set in viewDidLoad
and then it zooms in to the new region. This is a horrible UX
In didUpdateLocations
I am doing:
MKUserLocation *userLocation = _mapView.userLocation;
MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance (userLocation.location.coordinate, newHeight, newWidth);
[_mapView setRegion:region animated:NO];
Any ideas?