小智 7
一种方法是制作覆盖整个世界的多边形覆盖,并指定您不想填充的部分作为"内部多边形".
这是使用polygonWithCoordinates:count:interiorPolygons:类方法完成的MKPolygon.polygonWithPoints:count:interiorPolygons:如果你有MKMapPoints而不是坐标也有.
你传递一个NSArray的 MKPolygonS为interiorPolygons参数.这些区域不会被填写fillColor.
有关示例代码,请参阅此问题:使用MapKit显示特定区域
| 归档时间: |
|
| 查看次数: |
1114 次 |
| 最近记录: |