Add download offline map in Android with Here maps

懵懂的女人 提交于 2019-12-12 09:53:43

问题


I have already developed an Android Here map which has a simple map view but I need to add offline support to the app, how can I add it to my app in order to let the user download a specific country or area?

Note that I implemented my app using the tutorial in the link below: https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps.html


回答1:


See the Offline Maps section of the mobile sdk documentation.

In particular, you might want to use the following methods of the MapLoader class:

installMapPackages(List<Integer> packageIdList) - To download and install new country or region data

uninstallMapPackages(List<Integer> packageIdList) - To uninstall and delete country or region data that is no longer desired



来源:https://stackoverflow.com/questions/41359406/add-download-offline-map-in-android-with-here-maps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!