ArcGIS vector tiled layer URL

View on GitHub

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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<UserControl x:Class="ArcGIS.UWP.Samples.ArcGISVectorTiledLayerUrl.ArcGISVectorTiledLayerUrl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:esriUI="using:Esri.ArcGISRuntime.UI.Controls">
    <Grid>
        <esriUI:MapView x:Name="MyMapView" />
        <Border Style="{StaticResource BorderStyle}">
            <StackPanel>
                <TextBlock Text="Select a vector layer."
                           HorizontalAlignment="Center"
                           FontWeight="SemiBold"
                           Margin="0,0,0,5"
                           TextWrapping="Wrap" />
                <ComboBox x:Name="VectorLayerChooser"
                          HorizontalAlignment="Stretch"
                          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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close