哪些离线地图更适合iPhone [英] which offline maps is better for iphone

查看:147
本文介绍了哪些离线地图更适合iPhone的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iPhone应用程序,该应用程序仅包含一个城市的离线地图

I'm working on iphone application containing offline maps for one city only

我已经搜索并找到mapBox并给我路由,如果我想在地图上放置图钉并查看每个图钉的信息,这会更好吗?

I've searched and found mapBox and route me , which is better if I want to drop pins on the map and view information for each pin ?

我可以在数据库中存储一个城市的google地图并使用它吗?

Can I store google map for one city in the data base and use it ?

对此有何建议?

推荐答案

MapBox,RouteMe甚至MapKit都可以显示本地存储的离线地图,这三者之间的区别在于所需的工作水平及其功能套.使用哪一个完全取决于您要实现的目标.过去,我使用MapKit来显示选定区域的自定义地图(栅格,PNG格式),这些地图被切成图块,并与Google图块类似地命名,例如:

MapBox, RouteMe and even MapKit are capable of displaying offline locally stored maps, the differences between all three is the level of effort required to do so along with their feature sets. Which one to use is totally dependant on what you're trying to achieve. In the past I've used MapKit to display custom maps (raster, PNG format) for selected areas, with the maps sliced into tiles and named similarly to Google tiles such as:

/MapTiles/Z<ZoomLevel>/<XCoord>/<YCoord>.png

如果您要使用MapKit https://github.com/mtigas/iOS- MapLayerDemo .至于显示信息的引脚,MapKit也可以提供.

This may help you if you were to use MapKit https://github.com/mtigas/iOS-MapLayerDemo. As for pins that display information, MapKit is also capable of that.

相比之下,如果您想应用自定义样式以适合应用程序的外观,并突出显示对于使用应用程序很重要的功能,则很有可能会使用MapBox.

To compare, you'd more than likely use MapBox if you wanted to apply a custom style to suit your application's appearance, highlighting features that are important to the use of your application.

关于Google地图的离线存储,尽管从技术上讲您可以通过URL检索单个图块,然后将它们存储并离线显示(类似于上述内容),但这可能会违反其服务条款.另一种选择是使用 OpenStreetMap .

As for offline storage of Google maps, while you technically can retrieve individual tiles by URL, store them and display them offline (similar to above), this would likely be a violation of their terms of service. An alternative could be to use OpenStreetMap.

这篇关于哪些离线地图更适合iPhone的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆