Class VectorTileCache
A local cache of vector tiles that can be used to create an ArcGISVectorTiledLayer.
Inheritance
Implements
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.2.1 - 200.5 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.5 |