ArcGIS Developers
Dashboard

Obsolete Members for OfflineMapTask

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

Methods

  • DownloadPreplannedOfflineMapJob downloadPreplannedOfflineMap(PreplannedMapArea area, url downloadDirectoryPath, bool excludeBasemap=false) (obsolete)

Method Documentation

DownloadPreplannedOfflineMapJob downloadPreplannedOfflineMap(PreplannedMapArea area, url downloadDirectoryPath, bool excludeBasemap=false)

This method 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 url 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=false Specifies whether to exclude the basemap from the offline map. By default, this is set to false.

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.

since Esri.ArcGISRuntime 100.10.

Please use downloadPreplannedOfflineMapWithParameters(DownloadPreplannedOfflineMapParameters, url).

This method does not support the scheduled updates work flow and will default to use Enums.PreplannedUpdateModeSyncWithFeatureServices.

An instance of DownloadPreplannedOfflineMapParameters can be created and populated as required. Alternatively the recommended work flow 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 method was introduced in Esri.ArcGISRuntime 100.2.



Feedback on this topic?