I'm trying to fit all annotations on my MKMapView while keeping the current user position in center of map.
There are already many references[1][2] on how to zoom out a region to fit annotations on the map but they will adjust the current center position e.g. if all annotations are located east of my current user position, it will adjust so the current user position is moved left of the map.
How can I zoom my map out so it will fit all annotations shown but keep the users current position in the center of the map?
Refs:
[1] Zooming MKMapView to fit annotation pins?
[2] - (void)showAnnotations:(NSArray *)annotations animated:(BOOL)animated NS_AVAILABLE(10_9, 7_0);
MKCoordinateRegionMakeWithDistancesince they take both alatitudinalMetersand alongitudinalMeterswhich I'm currently just setting as the same but I'm not sure you can do it that easily. I'll post my method in a couple of minutes. - Peter Theill