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. ArcGISTiledLayer
and 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
WebTiledLayer
from a URL. - Create a new
Basemap
from 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.
- Basemap
- WebTiledLayer
The basemap in this sample is provided by ArcGIS Living Atlas of the World. ArcGIS Living Atlas of the World provides tiled services with several unique styles.
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, tiled, tiles