Update Offline Map Packages
The SDK does not download regional updates automatically. Use this guide to periodically check the online map catalog for newer region versions and install replacement packages when an update is available.
If the service does not provide a stable version string, use timestamp only according to the service contract. Do not detect updates by comparing file sizes alone.
Install a full replacement update
Use the following script for a complete replacement of an installed offline package:
The update is complete only when the progress listener reports .completed.
For package-level update detection:
-
Call fetchRegionDetail(forRegionId:) to obtain the latest online
tarList. -
Call loadDetail(forRegionId:) to obtain the locally cached details.
-
Index the packages by
tarName. -
Treat added packages, removed packages, or changed package versions as a regional catalog update.