简体   繁体   English

在iPhone中绘制路线视图

[英]drawing routes view in iphone

how can i draw routes on a map. 如何在地图上绘制路线。 This is easily solved though by placing a custom UIView over the map that acts as the map delegate but didn't how can i do this, and how to take a series of CLLocation coordinates and plot them on the map, regardless of the location the user pans to or how far they have zoomed in.Give some hint to solve this or give some sample code to do this 尽管可以通过将自定义UIView放置在充当地图委托的地图上来轻松解决此问题,但是我没有做到这一点,以及如何获取一系列CLLocation坐标并将其绘制在地图上,而不管位置如何用户平移或放大到多远。提供一些提示来解决此问题,或提供一些示例代码来完成此操作

thanks in advance 提前致谢

In ios4 apple has made some nice additions for this. 苹果在ios4中为此做了一些不错的添加。 Look at mkoverlay protocol and mkoverlayview. 查看mkoverlay协议和mkoverlayview。 You'll find an example here http://spitzkoff.com/craig/?p=136 您可以在此处找到示例http://spitzkoff.com/craig/?p=136

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM