Select to view content in your preferred language

Loading a map in an offline setup

691
1
08-11-2023 02:42 AM
Labels (2)
KunalKhosla26
New Contributor

Hi,

I am currently using ArcGIS SDK 100.6 with Qt v5.12.12 . I am trying to build an application that works offline. I have tried some codes on my own but I failed to see the map. Since I am using it offline, I tried to load maps using a .vtpk  and a raster file. In both the cases I failed to see the maps. Are there any restrictions in using it offline. Do I need to call using an API key? Looking forward for suggestions from fellow developers. Note: I am using C++ as that is my preferred language.

Regards,

Kunal 

1 Reply
Tanner_Yould
Esri Contributor

Hi Kunal,

Without seeing your code, it's difficult to determine exactly what may be wrong, but I can confirm that you don't need an API key for offline content. You may find some of our sample code useful to compare yours against. This Edit and sync features sample loads a tpkx for the basemap and using a vtpk should be similar. There's also the Export vector tiles sample that creates and loads a vtpk. And lastly, the Raster layer (file) sample shows how to use a raster (.tif) file as a map layer.

I hope these help, and don't hesitate to follow up with additional questions!

Tanner Yould
Product Engineer
ArcGIS Maps SDK for Native Apps
Esri
0 Kudos