enter code hereMKCoordinateRegion viewRegion;
viewRegion = MKCoordinateRegionMakeWithDistance(CLLocationCoordinate2DMake(51.4998844,-0.1261814), 10*1000, 10*1000);
[mapView setRegion:viewRegion animated:YES];
MapLocation *annotation;
annotation = [[MapLocation alloc] init];
annotation.coordinate =CLLocationCoordinate2DMake(51.4998844, -0.1261814);
annotation.placeTitle = [NSString stringWithString:@"London"];
[mapView addAnnotation:annotation];
[annotation release];`enter code here`
我设置伦敦方圆10公里的坐标。然后我将我的iphone地图与http://www.freemaptools.com/radius-around-point.htm进行比较。我发现freemaptools显示了更多的位置,然后iPhone地图。例如,我没有看到“白施塔特”在iPhone上,但我看到它在freemaptools。但为什么? 请看看我的照片。为什么的MKMapView显示不正确的半径
更新: 我加跨度= 2 * 10,但它没有帮助我。我们看到更多的领域。请在河上看到。
参见[这个问题,并妮娃的回答(http://stackoverflow.com/questions/4724176/slight-zoom-on-mkcoordinateregion)。它可以解释为什么你请求的setRegion(在你的更新中)不是你实际得到的。 – Anna