Map Cache (mapprecache)
Introduction
Demonstrate pre-cache OpenStreetMap online map service according to the specified range.
Operation effect
![]() |
| Figure: OSM Online Map Cache Operation Effect |
Location
Android Studio
- Product package: Product package catalogue\SampleCode\SampleCode_AndroidStudio\AndroidStudioSampleCode\mapprecache
License
Offline license, copy the license file to the "mobile device internal storage\SuperMap\License" folder.
Library
| jar |
|---|
| com.supermap.data.jar, com.supermap.mapping.jar |
| so |
| libimb2d.so, libgnustl_shared.so, libQt5Core.so, libQt5Gui.so, libQt5Svg.so, libQt5Widgets.so(Note: Starting from version 11.1, the last five so libraries need to be added.) |
Key types/members
| Control/Class | Method |
|---|---|
| MapCacheService | startDownload(), stopDownload(), removeDownload() |
Basic steps
- Click the [Start] button to start caching the online map;
- Click the [Stop] button to stop caching the online map, and the map is cached to the "mobile device internal storage\supermap\precache" folder.
- Click the [Remove] button to delete the cached local map data.
