MKMapRectMake標記東北和西南顯示區域。
我能否設置之後將地圖縮放一點?
routeRect = MKMapRectMake(southWestPoint.x, southWestPoint.y, northEastPoint.x - southWestPoint.x, northEastPoint.y - southWestPoint.y);
[self.mapView setVisibleMapRect:routeRect];
應該如何對地圖進行縮放?
MKCoordinateRegion region = MKCoordinateRegionForMapRect(routeRect);
MKCoordinateSpan span;
span.latitudeDelta = 0.09;
span.longitudeDelta = 0.09;
region.span = span;
region = [self.mapView regionThatFits:region];
[_mapView setRegion:region animated:YES];