The capabilities to take a web map's layers and tables offline. More...
Header: | #include <OfflineMapCapabilities.h> |
Since: | Esri::ArcGISRuntime 100.1 |
Public Functions
OfflineMapCapabilities(const Esri::ArcGISRuntime::OfflineMapCapabilities &other) | |
OfflineMapCapabilities(Esri::ArcGISRuntime::OfflineMapCapabilities &&other) | |
~OfflineMapCapabilities() | |
bool | hasErrors() const |
bool | isEmpty() const |
QMap<Esri::ArcGISRuntime::Layer *, Esri::ArcGISRuntime::OfflineCapability> | layerCapabilities(QObject *parent = nullptr) const |
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::OfflineCapability> | tableCapabilities(QObject *parent = nullptr) const |
Esri::ArcGISRuntime::OfflineMapCapabilities & | operator=(const Esri::ArcGISRuntime::OfflineMapCapabilities &other) |
Esri::ArcGISRuntime::OfflineMapCapabilities & | operator=(Esri::ArcGISRuntime::OfflineMapCapabilities &&other) |
Detailed Description
You can determine whether individual layers and tables will be included in an offline map by creating an OfflineMapTask from the web map, calling OfflineMapTask::offlineMapCapabilitiesAsync(const Esri::ArcGISRuntime::GenerateOfflineMapParameters&), and examining the resulting OfflineMapCapabilities.
Member Function Documentation
OfflineMapCapabilities::OfflineMapCapabilities (const Esri::ArcGISRuntime::OfflineMapCapabilities &other)
Copy constructor from other OfflineMapCapabilities.
OfflineMapCapabilities::OfflineMapCapabilities (Esri::ArcGISRuntime::OfflineMapCapabilities &&other)
Move constructor from other OfflineMapCapabilities.
OfflineMapCapabilities::~OfflineMapCapabilities ()
Destructor.
bool OfflineMapCapabilities::hasErrors () const
Returns true
if there is at least one layer or table that cannot be included in the offline map, false
otherwise.
This property indicates whether the map contains any layers or tables that cannot be taken offline. This is not relevant to offline maps that reference online-only layers and tables. Setting GenerateOfflineMapParameters::onlineOnlyServicesOption to OnlineOnlyServicesOption::Include will allow online-only data to be included in the offline map and referenced by URL.
bool OfflineMapCapabilities::isEmpty () const
Returns whether this object is empty.
QMap<Esri::ArcGISRuntime::Layer *, Esri::ArcGISRuntime::OfflineCapability > OfflineMapCapabilities::layerCapabilities (QObject *parent = nullptr) const
Returns layer capabilities for all the layers in the map.
The dictionary maps layer instances to offline capability. The dictionary has keys of element type Layer with values of OfflineCapability.
- parent - A parent object that will manage the lifetime of the objects returned from this method.
QMap<Esri::ArcGISRuntime::FeatureTable *, Esri::ArcGISRuntime::OfflineCapability > OfflineMapCapabilities::tableCapabilities (QObject *parent = nullptr) const
Returns layer capabilities for all the feature tables in the map.
The Dictionary has keys of element type FeatureTable with values of OfflineCapability.
- parent - A parent object that will manage the lifetime of the objects returned from this method.
Esri::ArcGISRuntime::OfflineMapCapabilities &OfflineMapCapabilities::operator=(const Esri::ArcGISRuntime::OfflineMapCapabilities &other)
Assignment operator from other OfflineMapCapabilities.
Esri::ArcGISRuntime::OfflineMapCapabilities &OfflineMapCapabilities::operator=(Esri::ArcGISRuntime::OfflineMapCapabilities &&other)
Move operator from other OfflineMapCapabilities.