Skip To Content ArcGIS for Developers Sign In Dashboard

VectorTileCache Class


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: Object and Loadable

Public Functions

VectorTileCache(const QString &path, QObject *parent = nullptr)
QString path() const
VectorTileSourceInfo sourceInfo() const
QImage thumbnail() const

Reimplemented Public Functions

virtual void cancelLoad()
virtual void load()
virtual Error loadError() const
virtual LoadStatus loadStatus() const
virtual void retryLoad()


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

Additional Inherited Members

  • 1 property inherited from QObject
  • 1 public slot inherited from QObject
  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

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

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



[virtual] void VectorTileCache::cancelLoad()

Reimplemented from Loadable::cancelLoad().

See Loadable.

[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.

[virtual] void VectorTileCache::load()

Reimplemented from Loadable::load().

See Loadable.

[virtual] Error VectorTileCache::loadError() const

Reimplemented from Loadable::loadError().

See Loadable.

[virtual] LoadStatus VectorTileCache::loadStatus() const

Reimplemented from Loadable::loadStatus().

See Loadable.

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

loadStatus See Loadable.

QString VectorTileCache::path() const

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

[virtual] void VectorTileCache::retryLoad()

Reimplemented from Loadable::retryLoad().

See Loadable.

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?