Class VectorTileStyle
Style information for an ArcGISVectorTiledLayer.
Inheritance
Namespace: Esri.ArcGISRuntime.Mapping
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class VectorTileStyle
Remarks
Styles allows vector tiles to be visualized in different ways, such as day and night viewing. A vector tile style is a JSON structure and resources that define how the contents of vector tiles are displayed using an ArcGISVectorTiledLayer. Each style contains sets of visual properties for a vector tiled layer, such as fill colors, viewing levels, and labels, and its resources include fonts and sprites. Each ArcGIS vector tile source will have a default vector tile style and may have additional custom styles.
You can download vector tiles, their default style and any custom style resources by using the
true
.
If you want to download a vector tile cache with a custom vector tile style, use
To display tiles from a local vector tile package (.vtpk) using a custom vector tile style, use the ArcGISVectorTiledLayer(VectorTileCache, ItemResourceCache) constructor and provide the custom item resource cache for the style.
You can create new styles for an ArcGIS vector tile source using the ArcGIS Vector Tile Style Editor. ArcGIS Online provides some example layers with multiple styles in Creative Vector Tile Layers and Web Maps.
Properties
Name | Description |
---|---|
SourceUri | Gets the vector tile Source Uri. |
Version | Gets the style version. |
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 |