Web tiled layer
Display a tiled web layer.
Tiled map services are a set of pre-generated images (e.g. "tiles") arranged in folders for each row, column, and zoom level. As you navigate the map, map tiles are requested for the current extent.
WMTSLayer are types of tiled map services used for specific data types.
WebTiledLayer is useful for displaying other data sources that contain tiles arranged in a row/column/level directory structure, such as OpenStreetMap.
Run the sample and a map will appear. As you navigate the map, map tiles will be fetched automatically and displayed on the map.
- Create a
WebTiledLayerfrom a URL and a list of subdomains.
- Create a new
Basemapfrom the layer.
- Update the attribution on the layer. Note: this is a necessary step because web tiled services don't have associated service metadata.
- Display the basemap.
The basemap in this sample is provided by Stamen Design. Stamen publishes tiled services based on OpenStreetMap data with several unique styles applied.
Web tiled services use a uniform addressing scheme with pre-rendered tiles. Image tiles are accessed via a URL template string, with parameters for subdomain, level, column, and row.
- Subdomain is optional and allows Runtime to balance requests among multiple servers for enhanced performance.
- Level, row, and column select the tiles to load based on the visible extent of the map.
For more information about web tiled layers, see the following resources:
layer, OGC, Open Street Map, OpenStreetMap, stamen.com, tiled, tiles
<UserControl x:Class="ArcGISRuntime.WinUI.Samples.LoadWebTiledLayer.LoadWebTiledLayer" 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" /> </Grid> </UserControl>