使用 Here 地图在 Android 中添加下载离线地图

Add download offline map in Android with Here maps

我已经开发了一个 Android Here 地图,它有一个简单的地图视图,但我需要向该应用程序添加离线支持,我如何将其添加到我的应用程序以便让用户下载具体国家或地区?

请注意,我使用下面 link 中的教程实现了我的应用程序: https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps.html

请参阅移动 SDK 文档的 Offline Maps 部分。

特别是,您可能希望使用 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