Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
假设您有一个名为 coords 的 CLLocationCooperative2D 数组:
int size = sizeof(coords[0]) / sizeof(coords); MKPolyline* line = [MKPolyline polylineWithCoordinates:coords count:size]; [mapView addOverlay:line];
Assuming you have an array of CLLocationCoordinate2D called coords:
现在我使用 Quartz 来绘制这些点之间的路径。我取两个点并在这些点之间绘制线,依此类推,直到数组的末尾,它给出了起点和终点之间的路线。
Now i use Quartz to draw the path between that points.I take two points and draw line between that points and so on till the end of the array and it gives the route between starting point and end point.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
假设您有一个名为 coords 的 CLLocationCooperative2D 数组:
Assuming you have an array of CLLocationCoordinate2D called coords:
现在我使用 Quartz 来绘制这些点之间的路径。我取两个点并在这些点之间绘制线,依此类推,直到数组的末尾,它给出了起点和终点之间的路线。
Now i use Quartz to draw the path between that points.I take two points and draw line between that points and so on till the end of the array and it gives the route between starting point and end point.