The result of a GenerateOfflineMapJob. More...
Header: | #include <GenerateOfflineMapResult.h> |
Since: | Esri::ArcGISRuntime 100.1 |
Inherits: | Esri::ArcGISRuntime::Object |
Public Functions
virtual | ~GenerateOfflineMapResult() 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
Once the GenerateOfflineMapJob is complete, GenerateOfflineMapResult indicates if there are any errors related to the layers or tables within the map. If the job is successful, offlineMap returns the offline map.
Relevant samples:
- Generate offline map: Take a web map offline.
- Generate Offline Map (Overrides): Take a web map offline with additional options for each layer.
- Generate offline map with local basemap: Use the `OfflineMapTask` to take a web map offline, but instead of downloading an online basemap, use one which is already on the device.
Member Function Documentation
[override virtual]
GenerateOfflineMapResult::~GenerateOfflineMapResult ()
Destructor.
bool GenerateOfflineMapResult::hasErrors () const
Returns true
if there is at least one layer or table that could not be taken offline, false
otherwise.
QMap<Esri::ArcGISRuntime::Layer *, Esri::ArcGISRuntime::Error > GenerateOfflineMapResult::layerErrors () const
Returns any errors associated with layers that could not be taken offline.
Esri::ArcGISRuntime::MobileMapPackage *GenerateOfflineMapResult::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 GenerateOfflineMapResult object.
Esri::ArcGISRuntime::Map *GenerateOfflineMapResult::offlineMap (QObject *parent = nullptr) const
Returns the offline map.
- parent - The object to set as the parent of the returned map. If not provided, the parent will be this GenerateOfflineMapResult object.
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::Error > GenerateOfflineMapResult::tableErrors () const
Returns any errors associated with feature tables that could not be taken offline.