WMTS services

The Open Geospatial Consortium, Inc. (OGC), Web Map Tile Service (WMTS) specification is an international specification for serving digital maps over the web using cached image tiles.

Why use a WMTS service?

WMTS services are useful if you want to make your cached map or image services available in an open, recognized way across different platforms and clients. Additionally, WMTS services are an effective way to make your ArcGIS for Server cached map or image services run faster on OGC clients.

Scope and compatibility

Clients built to support the WMTS 1.0.0 specification and RESTful or key/value pair (KVP) encoding can view and work with WMTS services. Simple Object Access Protocol (SOAP) encoding is not supported.

Client applications work with a WMTS service by appending parameters to the service's uniform resource locator (URL). WMTS services derived from cached map or image services support the following operations (RESTful and KVP encoding only):

You can learn more about WMTS services at the Open Geospatial Consortium website. Esri also maintains a Standards and Interoperability web page detailing its support for OGC services in ArcGIS.

Adding a WMTS service

You can declare WMTS services in Extensible Application Markup Language (XAML). They should be inserted inside a Map control element below any base layers. If you have not already done so, create a WPF application with a map (see Creating a map for details).

NoteNote:

The code in this topic requires a reference to the ESRI.ArcGIS.Client assembly. The XAML of the Window (for example, MainWindow.xaml) needs to have the following Extensible Markup Language (XML) namespace declaration:

xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
  1. In the Map element, declare a WmtsLayer with a ServiceMode RESTful as shown in the following code sample:
    <esri:Map x:Name="MyMap" Extent="-130,10,-70,60" >
      <esri:Map.Layers>
        <esri:WmtsLayer ServiceMode="RESTful"/>
      </esri:Map.Layers>
    </esri:Map>
    
  2. To connect to a WMTS service, you need to know the URL. WMTS services published to ArcGIS for Server have this URL format:

    • For cached map services—http://<server name>:<port>/arcgis/rest/services/<folder name (if applicable)>/<map service name>/MapServer/WMTS

      For example, if you created the cached map service WMTSDemoService, and published the service in a folder called DemoFolder on the server myServer with the port number 6080, the URL would be as follows:

      http://myServer:6080/arcgis/rest/services/DemoFolder/WMTSDemoService/MapServer/WMTS

    • For cached image services—http://<server name>:<port>/arcgis/rest/services/<folder name (if applicable)>/<image service name>/ImageServer/WMTS

      For example, if you created the cached image service WMTSDemoService, and published the service in a folder called DemoFolder on the server myServer with the port number 6080, the URL would be as follows:

      http://myServer:6080/arcgis/rest/services/DemoFolder/WMTSDemoService/ImageServer/WMTS

    Provide the URL of the WMTS service as shown in the following code sample:
    <esri:Map x:Name="MyMap" Extent="-130,10,-70,60" >
      <esri:Map.Layers>
        <esri:WmtsLayer ServiceMode="RESTful" 
                      Url="http://servicesbeta4.esri.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS" />
      </esri:Map.Layers>
    </esri:Map>
    
1/27/2015