A task to download vector tiles with their default style or with their associated custom style resources. Optionally, the task can download only the custom style resources. More...
Member Function Documentation[explicit]
ExportVectorTilesTask::ExportVectorTilesTask(Esri::ArcGISRuntime::PortalItem *portalItem, QObject *parent = nullptr)
Creates an export vector tiles task with a portal item of type PortalItemType::VectorTileService.
If the portal item is not of type PortalItemType::VectorTileService the task will fail to load. The portal item will reference a vector tile service and once the task is loaded the property url will be populated to the backing service. This portal item can also contain custom style resources. See hasStyleResources which can additionally be exported as ItemResourceCache.
[explicit]
ExportVectorTilesTask::ExportVectorTilesTask(const QUrl &url, QObject *parent = nullptr)
Creates an export vector tiles task with a URL to a vector tile service.
The URL can be for:
If the URL represents a PortalItem that can be used to download vector tiles or style resources, the portalItem property will be populated when the task is loaded.
[override virtual noexcept]
ExportVectorTilesTask::~ExportVectorTilesTask()
Destructor.
[override virtual, since Esri::ArcGISRuntime 100.10]
QString ExportVectorTilesTask::apiKey() const
Reimplements: ApiKeyResource::apiKey() const.
Returns the API key allows your app to access ArcGIS location services and private portal items.
An API key is a unique long-lived access token that is used to authenticate and monitor requests to ArcGIS location services and private portal items. You can create and manage an API key using your portal when you sign in with an ArcGIS Location Platform account or an ArcGIS Online account with administrator access or a custom role that has the `Generate API keys` privilege. To learn how to create and manage API keys, go to the Create an API Key tutorial. You must ensure that your API key has the correct privileges to access secure resources.
Note: An API key created with a referrer is not supported. If you need service requests to include the referrer, use the SDK's functionality to intercept the request and add an HTTP referer header.
In addition to setting an ArcGISRuntimeEnvironment::apiKey at a global level for your application, you can set it on any class that implements ApiKeyResource. This overrides the ArcGISRuntimeEnvironment::apiKey and enables more granular usage telemetry and management of ArcGIS location resources used by your app.
Classes that expose an API key property by implementing ApiKeyResource include:
For more information, see API key authentication and Types of authentication.
This function was introduced in Esri::ArcGISRuntime 100.10.
See also setApiKey().
[override virtual]
void ExportVectorTilesTask::cancelLoad()
Reimplements: Loadable::cancelLoad().
See Loadable.
[since Esri::ArcGISRuntime 200.2]
QFuture<Esri::ArcGISRuntime::ExportVectorTilesParameters> ExportVectorTilesTask::createDefaultExportVectorTilesParametersAsync(const Esri::ArcGISRuntime::Geometry &areaOfInterest, double maxScale)
Creates and returns the default parameters for the export vector tile task.
This is asynchronous because it makes use of the service metadata to populate the ExportVectorTilesParameters object. The ExportVectorTilesTask to be loaded, unless it is already loaded.
The supported geometry types for the area of interest are Envelope and Polygon. The area of interest must have a spatial reference. Where a Polygon is supplied, tiles will be filtered according to the polygon geometry, which can help reduce the size of the resulting tile package. Note that the filtered set of tiles may vary, depending on the underlying service.
A max_scale of 0 will include all levels of detail of the service. Be careful when you provide a large area of interest or a small max_scale value as this could result in a large number of tiles being requested. If the number of tiles requested exceeds the service's maximum export tile count the ExportVectorTilesJob will fail.
This method returns a QFuture for the asynchronous operation. Use future.then() to continue processing when the operation completes. Use future.onFailed() to handle exceptions of type ErrorException.
See Working with QFuture for further details.
This function was introduced in Esri::ArcGISRuntime 200.2.
[signal]
void ExportVectorTilesTask::doneLoading(const Esri::ArcGISRuntime::Error &loadError)
Signal emitted when this object is done loading.
If there is a load error, it will also be emitted on the errorOccurred
signal.
Returns a new export vector tiles job that will download a custom style from a portal item as an item resource cache.
The job will return the item resource cache without a vector tile cache. This is useful when a number of different styles are applied to the same underlying vector tile service. This avoids exporting multiple copies of the same tiles.
Esri::ArcGISRuntime::ExportVectorTilesJob *ExportVectorTilesTask::exportVectorTiles(const Esri::ArcGISRuntime::ExportVectorTilesParameters ¶meters, const QString &vectorTileCachePath)Returns a new export vector tiles job that can be used to generate and download a vector tile package containing the vector tiles specified by the parameters (ExportVectorTilesParameters).
Returns a new export vector tiles job that can be used to generate and download a vector tile package and return a custom style as an item resource cache.
Returns true
if the task's portal item has any associated style resources that override the default style of the vector tile service, false
otherwise.
This property will be set to true
if the export vector tile task has been loaded and the task's portal item has style resources. The portal item's style resources override the default style of the vector tile service and can be exported as ItemResourceCache.
[override virtual]
void ExportVectorTilesTask::load()
Reimplements: Loadable::load().
Loads the metadata for the object asynchronously.
Loads the metadata if the object is not loaded.
See Loadable.
[override virtual]
Esri::ArcGISRuntime::Error ExportVectorTilesTask::loadError() const
Reimplements: Loadable::loadError() const.
Returns the load error.
See Loadable.
See also Error.
[override virtual]
Esri::ArcGISRuntime::LoadStatus ExportVectorTilesTask::loadStatus() const
Reimplements: Loadable::loadStatus() const.
Returns the load status.
See Loadable.
See also LoadStatus.
[signal]
void ExportVectorTilesTask::loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)
Signal emitted when the load status changes for this object.
See also Loadable.
Esri::ArcGISRuntime::PortalItem *ExportVectorTilesTask::portalItem() constReturns the task's portal item which must be of type PortalItemType::VectorTileService.
This property can only be set when the task is load status LoadStatus::NotLoaded or LoadStatus::FailedToLoad If the portal item is not of type PortalItemType::VectorTileService the task will fail to load. A vector tile service can be referenced by an item in a portal of type PortalItemType::VectorTileService. This item can also contain custom style resources see hasStyleResources which can be exported as ItemResourceCache.
[override virtual]
void ExportVectorTilesTask::retryLoad()
Reimplements: Loadable::retryLoad().
Loads or retries loading metadata for the object asynchronously.
Will retry loading the metadata if the object is failed to load. Will load the object if it is not loaded. Will not retry to load the object if the object is loaded.
See Loadable.
[override virtual, since Esri::ArcGISRuntime 100.10]
void ExportVectorTilesTask::setApiKey(const QString &apiKey)
Reimplements: ApiKeyResource::setApiKey(const QString &apiKey).
Sets the API key to apiKey.
This function was introduced in Esri::ArcGISRuntime 100.10.
See also apiKey().
Esri::ArcGISRuntime::VectorTileSourceInfo ExportVectorTilesTask::sourceInfo() constReturns the VectorTileSourceInfo representing the source metadata for a vector tile service.
[override virtual]
QUrl ExportVectorTilesTask::url() const
Reimplements: RemoteResource::url() const.
Returns the URL for exporting vector tiles.
This property can be the URL of:
If the URL represents a PortalItem that can be used to download vector tiles or style resources, the portalItem property will be populated when the task is loaded.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4