Load an ArcGIS Vector Tiled Layer from a URL.
Use case
Vector tile basemaps can be created in ArcGIS Pro and published as offline packages or online services. ArcGISVectorTiledLayer
has many advantages over traditional raster based basemaps (ArcGISTiledLayer
), including smooth scaling between different screen DPIs, smaller package sizes, and the ability to rotate symbols and labels dynamically.
How to use the sample
Use the drop down menu to load different vector tile basemaps.
How it works
- An
ArcGISVectorTiledLayer
is constructed with an ArcGIS Online service URL - The layer instance is added to the
Map
Relevant API
- ArcGISVectorTiledLayer
- Basemap
Tags
tiles, vector, vector basemap, vector tiled layer, vector tiles
Sample Code
<UserControl x:Class="ArcGISRuntime.WPF.Samples.ArcGISVectorTiledLayerUrl.ArcGISVectorTiledLayerUrl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:esri="http://schemas.esri.com/arcgis/runtime/2013">
<Grid>
<esri:MapView x:Name="MyMapView" />
<Border Style="{StaticResource BorderStyle}">
<StackPanel>
<TextBlock Margin="5"
Text="Select a vector layer."
TextAlignment="Center"
TextWrapping="Wrap" />
<ComboBox x:Name="VectorLayersChooser"
Margin="5"
SelectionChanged="OnVectorLayersChooserSelectionChanged" />
</StackPanel>
</Border>
</Grid>
</UserControl>