使用 iPhone MapKit 自定义地图
我正在尝试使用 MapKit 创建自定义地图(类似于此概念 http://mapwow.com/)使用图像而不是谷歌地图图像。这样我们就可以包含 GPS 功能和引脚功能。我查看了文档,似乎没有标准的方法。有没有办法使用 MapKit 来做到这一点,或者有人找到了实现类似目标的方法?
I am attempting to use MapKit to create a custom map (similar to this concept http://mapwow.com/) using an image instead of the google maps image. This is so we can include the gps functionality and the pins functionality. I have looked in the documentation and there does not appear to be a standard way of doing it. Is there a way to do this using MapKit or has someone found a way to achieve something similar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
目前,除了带有 MapKit 的 Google 地图外,您无法使用任何其他工具。
Dmytro 已经指出了提供替代方案的有用链接,特别是 路线-me 库,但还有 CloudMade API,它提供了另一个选择。
如果您想自己动手,您可以找到 CATiledLayer 类很有帮助。
You can't currently use anything other than the Google Maps with MapKit.
Dmytro has already pointed to useful links that provide alternatives, particularly the route-me library, but there's also the CloudMade API which provides another alternative.
If you want to roll your own, you may find the CATiledLayer class helpful.
您可以查看 route-me 项目。它允许开发人员使用自定义地图源,例如 OpenStreetMap、CloudMade 等并支持 pin。
顺便说一句,CloudMade 有地图样式编辑器,可能对您有用
You can take a look at route-me project. It allows developer to use custom map sources such as OpenStreetMap, CloudMade etc and supports pins.
BTW CloudMade has a map style editor which might be useful for you