In this example: Generate offline map—ArcGIS Runtime SDK for Qt | ArcGIS for Developers
I don't have the import Esri.ArcGISExtras 1.1 module, and the
'DownloadButton' control gives me error, which module should I use?
Thank you,
Solved! Go to Solution.
You can find the source for the sample here - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Maps/GenerateOfflineMap at master · Esri/arc...
Try copying the GenerateWindow and DownloadButton into your project
If you don't have Extras, you can comment out that import. You'll need to fix up 2 more lines - change the `property real scaleFactor` to be equal to 1, and for `property url outputMapPackage`, hardcode a path or use another module to set a local file URL such as - "file:///Users/username/data.mmpk"
Ye, I did all that, getting error on DownloadButton and GenerateWindow controls:
qml: GenerateWindow is not a type
Thank you,
You can find the source for the sample here - arcgis-runtime-samples-qt/ArcGISRuntimeSDKQt_QMLSamples/Maps/GenerateOfflineMap at master · Esri/arc...
Try copying the GenerateWindow and DownloadButton into your project
Thank you Lucas, that resolves the controls problems.
How ever on start map doesn't show up, I checked the web map ID and its good
Anything else is missing?
ok, setting property
loginRequired: false resolved the loading issue. Thanks,