3
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 上没有看到“White Stadt”,但我在 freemaptools 上看到了它。但为什么?请看我的照片。

在此处输入图像描述在此处输入图像描述

更新:我添加了 span = 2*10 但这对我没有帮助。我们看到更多的领域。请看河上。 在此处输入图像描述

4

1 回答 1

1

从文档:http: //developer.apple.com/library/ios/#documentation/MapKit/Reference/MapKitFunctionsReference/Reference/reference.html

latitudinalMeters 用于跨度的南北距离量(以米为单位)。

纵向米用于跨度的东西距离量(以米为单位)。

这更像是直径而不是半径。

尝试将这两个参数分别设置为 2*10*1000。

于 2011-07-12T17:49:32.333 回答