ArcGIS vector tiled layer URL

View inAndroidFormsUWPWPFWinUIiOSView on GitHubSample viewer app

Load an ArcGIS Vector Tiled Layer from a URL.

Image of ArcGIS vector tiled layer 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

  1. An ArcGISVectorTiledLayer is constructed with an ArcGIS Online service URL
  2. The layer instance is added to the Map

Relevant API

  • ArcGISVectorTiledLayer
  • Basemap

Tags

tiles, vector, vector basemap, vector tiled layer, vector tiles

Sample Code

ArcGISVectorTiledLayerUrl.xamlArcGISVectorTiledLayerUrl.xamlArcGISVectorTiledLayerUrl.xaml.cs
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.