How to get an offline map and use it in qml?

712
3
Jump to solution
10-26-2023 01:37 AM
Labels (3)
lsc
by
New Contributor II

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? 

0 Kudos
1 Solution

Accepted Solutions
KevinCheriyan
Occasional Contributor

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


--------------------------------------------------
Application Developer, GeoMarvel

View solution in original post

0 Kudos
3 Replies
KevinCheriyan
Occasional Contributor

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


--------------------------------------------------
Application Developer, GeoMarvel
0 Kudos
lsc
by
New Contributor II

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?

0 Kudos
KevinCheriyan
Occasional Contributor

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.


--------------------------------------------------
Application Developer, GeoMarvel
0 Kudos