Show / Hide Table of Contents

Class VectorTileCache

A local cache of vector tiles that can be used to create an ArcGISVectorTiledLayer.

Inheritance
System.Object
VectorTileCache
Implements
ILoadable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class VectorTileCache : ILoadable
Remarks

Local tile caches are ideal for providing basemaps or less frequently changing contextual layers, where network access is limited or non-existent. You can create and download a vector tile cache onto a device by using an ExportVectorTilesJob, or alternatively you can provision it directly to local storage. Currently the only supported type of cache is the vector tile package (.vtpk). This single file contains all of the tile data files, the source information, a style sheet, and the font and symbol marker resources required to display the map.

You can create an ArcGISVectorTiledLayer from a VectorTileCache and then use it as a basemap or as an operational layer in a map or scene.

Constructors

Name Description
VectorTileCache(String)

Initializes a new instance of the VectorTileCache class from the specified cache path.

Properties

Name Description
LoadError

Gets the System.Exception associated with the last load error.

LoadStatus

Gets the load status.

Path

Gets the full path of the vector tile cache (.vtpk file).

SourceInfo

Gets the VectorTileSourceInfo used by this vector tile cache.

Thumbnail

Gets the thumbnail image of this tile cache.

Methods

Name Description
CancelLoad()

Cancel loading metadata for the object.

CreateAsync(String)

Creates and loads a new instance of the VectorTileCache class from the specified cache path.

LoadAsync()

Load the metadata for the object asynchronously.

RetryLoadAsync()

Loads or retries loading metadata for the object asynchronously.

Events

Name Description
Loaded

Event that is raised when the object is done loading.

LoadStatusChanged

Event that is raised when the LoadStatus property changes.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.2.1 - 200.7
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 200.7
In This Article
Back to top Copyright © 2022 Esri.