我正在使用以下代码

 MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake(annView.annotation.coordinate.latitude, annView.annotation.coordinate.longitude - .04), Some KM, Some KM);

 MKCoordinateRegion adjustedRegion = [self.mapView regionThatFits:viewRegion];
 [self.mapView setRegion:adjustedRegion animated:YES];
其他方法是
MKCoordinateRegionMake(CLLocationCoordinate2DMake(annView.annotation.coordinate.latitude, annView.annotation.coordinate.longitude - .04), ADD SPAN HERE)
两者都会使地图缩放。我如何在没有任何缩放的情况下更改“区域”。

最佳答案

获取当前区域,仅更改中心点。

// get current region
MKCoordinateRegion region = self.mapView.region;
// Update the center
region.center = CLLocationCoordinate2DMake(annView.annotation.coordinate.latitude, annView.annotation.coordinate.longitude - .04);
// apply the new region
self.mapView.region = region;

10-08 16:15