ArcGIS Developers
Dashboard

Obsolete Members for OfflineMapTask

The following members of class OfflineMapTask are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) Esri::ArcGISRuntime::DownloadPreplannedOfflineMapJob *downloadPreplannedOfflineMap(Esri::ArcGISRuntime::PreplannedMapArea *area, const QString &downloadDirectoryPath)
(obsolete) Esri::ArcGISRuntime::DownloadPreplannedOfflineMapJob *downloadPreplannedOfflineMap(Esri::ArcGISRuntime::PreplannedMapArea *area, const QString &downloadDirectoryPath, bool excludeBasemap)

Member Function Documentation

Esri::ArcGISRuntime::DownloadPreplannedOfflineMapJob *OfflineMapTask::downloadPreplannedOfflineMap(Esri::ArcGISRuntime::PreplannedMapArea *area, const QString &downloadDirectoryPath)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns a job that is used to download the specified preplanned map area of an online map.

  • area - Specifies the preplanned map area to be downloaded.
  • downloadDirectoryPath - The path to a folder where the map content is stored on the device. For example, to create a new mobile map package "my_mobile_map_package" in a parent directory "[my root path]/my_mobile_maps", this property would be "[my root path]/my_mobile_maps/my_mobile_map_package".

Note: The job that is returned is not started and needs to be explicitly started. The job will fail if the last directory in the download directory path cannot be created or is not empty.

since Esri::ArcGISRuntime 100.10.

Please use downloadPreplannedOfflineMap(DownloadPreplannedOfflineMapParameters). This method does not support the scheduled updates workflow and will default to use PreplannedUpdateMode::SyncWithFeatureServices. An instance of DownloadPreplannedOfflineMapParameters can be created and populated as required. Alternatively the recommended workflow is to use createDefaultDownloadPreplannedOfflineMapParameters(PreplannedMapArea) and then make any adjustments. This will determine if scheduled updates are present and update the property DownloadPreplannedOfflineMapParameters::updateMode appropriately.

This function was introduced in Esri::ArcGISRuntime 100.2.

Esri::ArcGISRuntime::DownloadPreplannedOfflineMapJob *OfflineMapTask::downloadPreplannedOfflineMap(Esri::ArcGISRuntime::PreplannedMapArea *area, const QString &downloadDirectoryPath, bool excludeBasemap)

This function is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.

Returns a job that is used to download the specified preplanned map area of an online map.

  • area - Specifies the preplanned map area to be downloaded.
  • downloadDirectoryPath - The path to a folder where the map content is stored on the device. For example, to create a new mobile map package "my_mobile_map_package" in a parent directory "[my root path]/my_mobile_maps", this property would be "[my root path]/my_mobile_maps/my_mobile_map_package".
  • excludeBasemap - Specifies whether to exclude the basemap from the offline map.

If you exclude the map's basemap from the download the offline map's size will be smaller and consequently the download process will be faster. If you already have a basemap stored locally on your device you can add that to the offline map.

Note: The job that is returned is not started and needs to be explicitly started. The job will fail if the last directory in the download directory path cannot be created or is not empty.

This function is deprecated in 100.4. Use downloadPreplannedOfflineMap accepting a DownloadPreplannedOfflineMapParameters instead.

This function was introduced in Esri::ArcGISRuntime 100.2.


Feedback on this topic?