Display a layer from a Web Map Tile Service.
WMTS services can have several layers. You can use Runtime to explore the layers available from a service. This would commonly be used to enable a browsing experience where users can choose which layers they want to display at run time.
The layer will be displayed automatically. Use the buttons to choose a different method of loading the layer.
To display a WMTS layer directly from a URL:
- Create a
WmtsService
object using the URL of the WMTS service. - Create a
WmtsLayer
object with the ID of the layer to display.
To explore layers from a WMTS service:
- Create a
WmtsService
object using the URL of the WMTS service. - After loading the WMTS service, get the list of
WmtsLayerInfo
objects from the service info of the WMTS service. - Use one of the layer infos to create the WMTS layer.
- Create a basemap with the WMTS layer and set it to the map.
- WmtsLayer
- WmtsLayerInfo
- WmtsService
- WmtsServiceInfo
We acknowledge the use of imagery provided by services from the Global Imagery Browse Services (GIBS), operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.
layer, OGC, raster, tiled, web map tile service