ArcGIS Developers

VectorTileCache Class

class Esri::ArcGISRuntime::VectorTileCache

This class represents the metadata for a local cache of vector map tiles that can be used to create an ArcGISVectorTiledLayer. More...

Header: #include <VectorTileCache>
Since: Esri::ArcGISRuntime 100.2
Inherits: Esri::ArcGISRuntime::Object and Esri::ArcGISRuntime::Loadable

This class was introduced in Esri::ArcGISRuntime 100.2.

Public Functions

VectorTileCache(const QString &path, QObject *parent = nullptr)
virtual ~VectorTileCache() override
QString path() const
Esri::ArcGISRuntime::VectorTileSourceInfo sourceInfo() const
QImage thumbnail() const

Reimplemented Public Functions

virtual void cancelLoad() override
virtual void load() override
virtual Esri::ArcGISRuntime::Error loadError() const override
virtual Esri::ArcGISRuntime::LoadStatus loadStatus() const override
virtual void retryLoad() override


void doneLoading(Esri::ArcGISRuntime::Error loadError)
void loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)

Detailed Description

This class is persisted as a vector tile package (*.vtpk) file on the device's file system.

Member Function Documentation

VectorTileCache::VectorTileCache(const QString &path, QObject *parent = nullptr)

Constructor that takes a path and an optional parent

[signal] void VectorTileCache::doneLoading(Esri::ArcGISRuntime::Error loadError)

Signal emitted when this object is done loading.

  • loadError - Details about any error that may have occurred.

If there is a load error, it will also be emitted on the errorOccurred signal.

See also Loadable and Object.

[signal] void VectorTileCache::loadStatusChanged(Esri::ArcGISRuntime::LoadStatus loadStatus)

loadStatus See Loadable.

[override virtual] VectorTileCache::~VectorTileCache()


[override virtual] void VectorTileCache::cancelLoad()

Reimplements: Loadable::cancelLoad().

See Loadable.

[override virtual] void VectorTileCache::load()

Reimplements: Loadable::load().

See Loadable.

[override virtual] Esri::ArcGISRuntime::Error VectorTileCache::loadError() const

Reimplements: Loadable::loadError() const.

See Loadable.

[override virtual] Esri::ArcGISRuntime::LoadStatus VectorTileCache::loadStatus() const

Reimplements: Loadable::loadStatus() const.

See Loadable.

QString VectorTileCache::path() const

Returns the path to the source file for this vector tile cache.

[override virtual] void VectorTileCache::retryLoad()

Reimplements: Loadable::retryLoad().

See Loadable.

Esri::ArcGISRuntime::VectorTileSourceInfo VectorTileCache::sourceInfo() const

Returns information about the vector tile cache's source.

The returned VectorTileSourceInfo includes name, extent, visible scale, and so on.

QImage VectorTileCache::thumbnail() const

Returns the thumbnail for this vector tile cache.

Feedback on this topic?