在Here-API中,我们如何在MapView中显示下载的区域包NMAMapLoader? [英] In Here-API how do we show downloaded region package NMAMapLoader in MapView?

查看:87
本文介绍了在Here-API中,我们如何在MapView中显示下载的区域包NMAMapLoader?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载并运行了map-downloader-ios-swift(

I downloaded and run map-downloader-ios-swift (https://github.com/heremaps/here-ios-sdk-examples/blob/master/map-downloader-ios) project and it worked well. After finished download 1 region package, how do we show that region in mapview without an internet connection? Also is it possible to add routes in that downloaded region in offline mode?

谢谢.

推荐答案

在离线模式下,缓存的地图数据用于呈现,路由,搜索等.因此,由于您已经下载了感兴趣的地图区域包,因此可以进行查看和路由与该区域有关的请求将由缓存的数据完成. 请阅读此参考资料(也适用于iOS):

In offline mode, cached map data is used for rendering, routing, searching, etc. So since you have downloaded the map region package of interest, viewing and routing requests related to to this region will be done with the cached data. Please read this reference (also applicable to iOS):

https://developer.here.com/documentation/android-premium/dev_guide/topics/routing-offline.html

并且如参考页中所述: 不能保证联机和脱机路由将相同,因为用于联机和脱机路由计算的算法将不同.在线路由计算是在高性能服务器上执行的,因此在线使用更多计算密集型算法,而这些算法不能离线使用.应该优先选择在线路由,并且应该将离线路由用作备份,尤其是在没有连接的情况下.

And as stated on the reference page: There is no guarantee that online and offline routes will be the same as different algorithms are used for online and offline route calculation. Online route calculation is performed on high performance servers, therefore more computationally intensive algorithms are used online, which cannot be used offline. Online route calculation should be preferred and offline routes are expected to be used as backup especially when there is no connectivity.

这篇关于在Here-API中,我们如何在MapView中显示下载的区域包NMAMapLoader?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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