Skip To Content ArcGIS for Developers Sign In Dashboard

DownloadPreplannedOfflineMapResult Class

(Esri::ArcGISRuntime::DownloadPreplannedOfflineMapResult)

The result of a DownloadPreplannedOfflineMapJob. More...

Header: #include <DownloadPreplannedOfflineMapResult>
Since: Esri::ArcGISRuntime 100.2
Inherits: Object

Public Functions

~DownloadPreplannedOfflineMapResult()
bool hasErrors() const
QMap<Layer *, Error> layerErrors() const
MobileMapPackage *mobileMapPackage(QObject *parent = nullptr) const
Map *offlineMap(QObject *parent = nullptr) const
QMap<FeatureTable *, Error> tableErrors() const
  • 31 public functions inherited from QObject

Additional Inherited Members

Detailed Description

The result of a DownloadPreplannedOfflineMapJob.

When the job completes it returns the offline map and indicates whether any errors occurred during the download process (hasErrors). Examine the individual layer and table errors to identify the source of the problem. Possible error conditions include the loss of the online service, a layer or table may not be taken offline, or exporting tiles is not enabled on the layer.

Member Function Documentation

DownloadPreplannedOfflineMapResult::~DownloadPreplannedOfflineMapResult()

Destructor.

bool DownloadPreplannedOfflineMapResult::hasErrors() const

Returns whether there is at least one layer or table that could not be taken offline.

To determine which layers or tables could not be taken offline, examine the layerErrors and the tableErrors, respectively.

QMap<Layer *, Error> DownloadPreplannedOfflineMapResult::layerErrors() const

Returns any errors associated with layers that could not be taken offline.

MobileMapPackage *DownloadPreplannedOfflineMapResult::mobileMapPackage(QObject *parent = nullptr) const

Returns the mobile map package containing the offline map.

Map *DownloadPreplannedOfflineMapResult::offlineMap(QObject *parent = nullptr) const

Returns the offline map containing the requested preplanned map area.

An offline Map that is downloaded from the preplanned map area of an online map using the DownloadPreplannedOfflineMapJob contains layers that will only reference offline layers and tables so that the map can be accessed without network connectivity.

QMap<FeatureTable *, Error> DownloadPreplannedOfflineMapResult::tableErrors() const

Returns any errors associated with feature tables that could not be taken offline.


Feedback on this topic?