The result of a DownloadPreplannedOfflineMapJob. More...
Header: | #include <DownloadPreplannedOfflineMapResult.h> |
Since: | Esri::ArcGISRuntime 100.2 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
virtual | ~DownloadPreplannedOfflineMapResult() override |
bool | hasErrors() const |
QMap<Esri::ArcGISRuntime::Layer *, Esri::ArcGISRuntime::Error> | layerErrors() const |
Esri::ArcGISRuntime::MobileMapPackage * | mobileMapPackage(QObject *parent = nullptr) const |
Esri::ArcGISRuntime::Map * | offlineMap(QObject *parent = nullptr) const |
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::Error> | tableErrors() const |
Detailed Description
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.
Relevant samples:
- Download a preplanned map area: Take a map offline using a preplanned map area.
Member Function Documentation
[override virtual]
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<Esri::ArcGISRuntime::Layer *, Esri::ArcGISRuntime::Error > DownloadPreplannedOfflineMapResult::layerErrors () const
Returns any errors associated with layers that could not be taken offline.
Iterate through the QMap (aka. dictionary) to examine the error strings to determine why the layers failed to be taken offline.
Esri::ArcGISRuntime::MobileMapPackage *DownloadPreplannedOfflineMapResult::mobileMapPackage (QObject *parent = nullptr) const
Returns the mobile map package containing the offline map.
- parent - The object to set as the parent of the returned map. If not provided, the parent will be this DownloadPreplannedOfflineMapResult object.
Esri::ArcGISRuntime::Map *DownloadPreplannedOfflineMapResult::offlineMap (QObject *parent = nullptr) const
Returns the offline map containing the requested preplanned map area.
- parent - The object to set as the parent of the returned map. If not provided, the parent will be this DownloadPreplannedOfflineMapResult object.
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<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::Error > DownloadPreplannedOfflineMapResult::tableErrors () const
Returns any errors associated with feature tables that could not be taken offline.