I want to get an offline map and use it in qml. But I didn't find the relevant API. Can you give me some helps?
Solved! Go to Solution.
ArcGIS Maps SDK for Qt has several options for offline workflows depending on your specific scenario.
See here: https://developers.arcgis.com/qt/offline-maps-scenes-and-data/
I think you might want to look into how to generate Mobile Map Packages (mmpk) and how to use those in the application. See here for more info: https://developers.arcgis.com/qt/tutorials/#offline
ArcGIS Maps SDK for Qt has several options for offline workflows depending on your specific scenario.
See here: https://developers.arcgis.com/qt/offline-maps-scenes-and-data/
I think you might want to look into how to generate Mobile Map Packages (mmpk) and how to use those in the application. See here for more info: https://developers.arcgis.com/qt/tutorials/#offline
Thank you very much! If I just want the basemap, do I need to generate it on arcgis pro too? Is there any easier way to do this?
Obviously, Pro and MMPKs make this much easier, but I think there are a couple of options if you don't have access to ArcGIS Pro.
Option 1:
Create a preplanned offline workflow in ArcGIS Online for your area (https://developers.arcgis.com/qt/offline-maps-scenes-and-data/tutorials/create-an-offline-map-area/)
and then download the map for offline use when the application starts up initially. The device can't be completely offline for this; you do have to let the user connect to network first so they can download the map area (https://developers.arcgis.com/qt/offline-maps-scenes-and-data/download-an-offline-map-ahead-of-time/)
Option 2:
If it's just the basemap that you want available offline, create tile packages (tpk) for the area you want and add them as your basemap in the MapView.
I think the general workflow to follow is:
1. Pick the map service for the basemap you want tiles for. World Imagery, Topographic
2. Export tiles from basemap using REST API
3. Add tpk to MapView's operational layers.