iOS中具有导航功能的私有财产的离线地图 [英] Offline Map for Private Property with Navigation in iOS

查看:63
本文介绍了iOS中具有导航功能的私有财产的离线地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个为我的大学校园构建离线地图的想法(它覆盖了近 3-4 英里).像新学生或来宾一样,您可以导航到校园中的各个街区.学生可以看到自己在当前位置和地图上的标记.可以从预定义的地点列表中选择目的地,然后应用程序将对其进行导航.

I have an idea of building offline Map for my University Campus (its covering almost 3-4 miles). Like new students or guests can navigate to various blocks in campus. Student can see himself/herself marked on map at current location & can chose destination from pre-defined list of places and application will navigate them.

我已经进行了很多探索,例如 maptiles 可以帮助我显示地图.但是还有其他有效的方式来显示校园地图吗?而且我不知道如何导航用户(因为私有财产区域超出了Google Maps(或其他一些API)的支持).

I have explored alot like maptiles can help me in showing maps. But is there any other efficient way of showing campus map ? And I have no idea how will I navigate user (since being a private property area is out of reach of Google's Maps (or some other) API).

任何建议都会有所帮助.:)

Any suggestions will be helpful. :)

已编辑

这是Google地图

Here is Google Map link to my place.

最近几天我正在研究 ArcGIS ,学会了使用'ArcGIS创建其'geodatabase'for Desktop"以在iPhone上呈现离线地图.

I am studying ArcGIS from last few days, learned to create its 'geodatabase' using 'ArcGIS for Desktop' for rendering offline maps on iPhone.

但是,现在我关心的是如何导航用户.

However, now my concern is how to Navigate user.

我也欢迎任何使用任何其他方法来实现它的建议/想法.

And I will welcome any suggestion/idea for accomplishing it using any different approach.

推荐答案

您可以使用MapBox来实现.

You can achieve that with MapBox.

MapBox是GoogleMaps的替代产品,并支持离线地图.

MapBox is an alternative to GoogleMaps and supports offline maps.

Mapbox iOS SDK
Mapbox iOS SDK提供三种方法用于离线地图.使用基于缓存的方法,RMTileCache用于可以将RMMapView配置为根据地图图块的周围情况计数或基于其在缓存中的年龄.

Mapbox iOS SDK
There are three methods available to the Mapbox iOS SDK for offline maps. With cache-based methods, the RMTileCache for an RMMapView can be configured to keep map tiles around based on their count or based on their age in the cache.

基于以前的用户互动进行缓存

Caching based on previous user interaction

下载并显示后,标题会自动缓存基于用户对地图的平移和缩放.例如,如果用户查看地图,然后放大,然后在以后离线时,原始图块将显示在缓存中并显示无需网络连接.

Tiles are automatically cached once they are downloaded for display based on the user’s panning and zooming of the map. For example, if a user views the map, then zooms out, then zooms back in later when offline, the original tiles will be present in cache and will display without need for a network connection.

某些地图区域的主动后台缓存

Proactive background caching for certain map regions

使用RMTileCache和RMTileCacheBackgroundDelegate协议,开发人员可以使用户下载特定的边界框,然后在实际将其显示在背景上之前先在背景中缩放范围屏幕.回调触发,使开发人员可以报告进度给用户,甚至取消正在进行的下载.

Using RMTileCache and the RMTileCacheBackgroundDelegate protocol, the developer can enable the user to download a certain bounding box and zoom range in the background in advance of actually displaying them on screen. Callbacks trigger, allowing the developer to report progress to the user or even to cancel a download in progress.

在此期间,缓存中已存在的标题将被跳过后台下载,而不是重新下载.

Tiles that already exist in cache will be skipped over during this background download instead of re-downloaded.

MBTiles预包装瓷砖

MBTiles prepackaged tiles

使用MBTiles格式存储地图图块,开发人员可以构建直接从MBTiles文件中读取图块且不读取图块的应用程序曾经需要网络连接.由于MBTiles是开放格式,因此文件可以手动创建,也可以使用TileMill以及其他许多创建应用程序和实用程序,例如mbutil.

Using the MBTiles format for map tile storage, developers can build apps that read the tiles straight out of the MBTiles file and do not ever need a network connection. Since MBTiles is an open format, files can be created manually or with TileMill, as well as many other applications and utilities such as mbutil.

您需要最后一个(即 MBTiles预包装的瓷砖).

You need the last one (i.e. MBTiles prepackaged tiles).

来源: https://www.mapbox.com/help/ios-offline/

这篇关于iOS中具有导航功能的私有财产的离线地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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