Show / Hide Table of Contents

Class ArcGISVectorTiledLayer

A layer that can visualize data from an ArcGIS vector tile service or a local VectorTileCache.

Inheritance
System.Object
Layer
ArcGISVectorTiledLayer
Implements
System.ComponentModel.INotifyPropertyChanged
ILoadable
ILayerContent
IApiKeyResource
Layer.LoadAsync()
Layer.CancelLoad()
Layer.RetryLoadAsync()
Layer.LoadStatus
Layer.LoadError
Layer.Item
Layer.Attribution
Layer.Description
Layer.MaxScale
Layer.MinScale
Layer.SpatialReference
Layer.Opacity
Layer.Id
Layer.FullExtent
Layer.Clone()
Layer.CanChangeVisibility
Layer.IsVisible
Layer.IsIdentifyEnabled
Layer.Name
Layer.ShowInLegend
Layer.SublayerContents
Layer.GetLegendInfosAsync()
Layer.IsVisibleAtScale(Double)
Layer.PropertyChanged
Layer.OnPropertyChanged(String)
Layer.Loaded
Layer.LoadStatusChanged
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
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 null if no vector tile cache is present.

See Also

Layer

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.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.