使用 iPhone MapKit 自定义地图

发布于 2024-08-30 08:53:58 字数 207 浏览 3 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉栀 2024-09-06 08:53:58

目前,除了带有 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.

灯下孤影 2024-09-06 08:53:58

您可以查看 route-me 项目。它允许开发人员使用自定义地图源,例如 OpenStreetMapCloudMade 等并支持 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文