【发布时间】:2012-03-20 00:41:50
【问题描述】:
在iOS Developer Library 位置感知编程指南的Displaying Overlays on a Map 部分中,有一个示例“显示覆盖科罗拉多州的填充和描边覆盖”。
// Define an overlay that covers Colorado.
CLLocationCoordinate2D points[4];
points[0] = CLLocationCoordinate2DMake(41.000512, -109.050116);
points[1] = CLLocationCoordinate2DMake(41.002371, -102.052066);
points[2] = CLLocationCoordinate2DMake(36.993076, -102.041981);
points[3] = CLLocationCoordinate2DMake(36.99892, -109.045267);
MKPolygon* poly = [MKPolygon polygonWithCoordinates:points count:4];
poly.title = @"Colorado";
[map addOverlay:poly];
问题 是否有美国所有 50 个州的坐标数据源使用相同的纬度/经度数据,并且可以随时免费获得?
【问题讨论】:
标签: ios geolocation mapkit overlay polygon