Class VectorTileCache
A local cache of vector tiles that can be used to create an ArcGISVectorTiledLayer.
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 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() | Attempts to cancel loading the object. |
| CreateAsync(string) | Creates and loads a new instance of the VectorTileCache class from the specified cache path. |
| LoadAsync() | Load the object asynchronously. |
| RetryLoadAsync() | Loads or retries loading the object asynchronously. |
Events
| Name | Description |
|---|---|
| LoadStatusChanged | Occurs when the LoadStatus property changes. |
| Loaded | Occurs when the object is done loading, whether loading succeeds, fails, or is canceled. |
Applies to
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.1 |
| .NET Windows | 100.13 - 300.1 |
| .NET Android | 200.0 - 300.1 |
| .NET iOS | 200.0 - 300.1 |
| .NET Framework | 100.2.1 - 200.8 |
| Xamarin.Android | 100.2.1 - 100.15 |
| Xamarin.iOS | 100.2.1 - 100.15 |
| UWP | 100.2.1 - 200.8 |