Class ArcGISVectorTiledLayer
A layer that can visualize data from an ArcGIS vector tile service or a local VectorTileCache.
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ArcGISVectorTiledLayer : Layer, INotifyPropertyChanged, ILoadable, ILayerContent, IApiKeyResource
Remarks
An ArcGIS vector tiled layer displays vector tiles from an online vector tile service or a local vector tile cache (.vtpk file). Vector tiled layers are appropriate for basemap, reference and possibly operational layers. They do not contain feature data, and do not support identify, search, or editing operations.
Vector tiles are an alternative to raster tile basemap layers, such as ArcGISTiledLayer. Instead of pixels (raster), the cartography is delivered using 2D points. The points describe lines, polygons, or the locations of labels and marker symbols. The file format of vector tiles is binary and conforms to the Mapbox Vector Tile Specification. This specification allows a more continuous visual experience between levels of detail compared to raster tiles. The vector tile file format requires less space than raster tiles and is optimized to reduce network bandwidth.
You can create a vector tiled layer using either a URI or a portal item. The URI can point to a vector tile source, a vector tile style sheet, or a local vector tile package (.vtpk) file. The portal item will contain a URI to a vector tile stylesheet. The style sheet describes the appearance of the geometry and must be in the Mapbox GL Style format. The style sheet also contains a URI to a vector tile source. The source must be in the Mapbox TileJSON format. The source info includes a URI to a default style sheet.
More than one vector tile style sheet can use the same source. Both the source info and the style sheet are human readable JSON files.
You can also download vector tiles from an online vector tile service using ExportVectorTilesTask. The downloaded vector tile package is a single file (.vtpk) that 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.
Vector tile packages can be distributed inside mobile map packages (.mmpk). The mobile map package JSON can point to the location of the vector tile style sheet or the root of the vector tile package data.
Constructors
Name | Description |
---|---|
ArcGISVectorTiledLayer(VectorTileCache) | Initializes a new instance of the ArcGISVectorTiledLayer class from the specified VectorTileCache. |
ArcGISVectorTiledLayer(VectorTileCache, ItemResourceCache) | Initializes a new instance of the ArcGISVectorTiledLayer class from the specified VectorTileCache and ItemResourceCache. |
ArcGISVectorTiledLayer(Item) | Initializes a new instance of the ArcGISVectorTiledLayer class from the specified Item. |
ArcGISVectorTiledLayer(Uri) | Initializes a new instance of the ArcGISVectorTiledLayer class from an ArcGIS Vector Tile Service URL, a Vector Tile Style Sheet URI, or a path to a local vector tile package (.vtpk) file. |
Properties
Name | Description |
---|---|
ApiKey | Gets or sets the API key that allows your app to access ArcGIS location services and private portal items. |
ItemResourceCache | Gets the item resource cache that contains a custom style that can be applied to this layer. |
Source | Gets or sets the endpoint of the vector tiled map service or the path to a vector tile package. |
SourceInfo | Gets the VectorTileSourceInfo metadata. |
Style | Gets the VectorTileStyle. |
VectorTileCache | Gets the underlying VectorTileCache or |
See Also
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |