<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OGC WMTS layer example for Android? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369321#M2442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already taken a look at the following documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/ogc/WMTSLayer.html" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/ogc/WMTSLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;WMTSLayer | ArcGIS Android 10.2.8 API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, this is the syntax from that documentation on how to initialize that type of layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSServiceInfo&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; serviceInfo &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSServiceInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fetch&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #008800;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F%5BSERVER%3APORT%5D%2F%5BINSTANCE%5D%2Fservices%2F%5BSERVICE%5D%2FMapServer%2FWMTS%2F1.0.0%2FWMTSCapabilities.xml" target="_blank"&gt;http://[SERVER:PORT]/[INSTANCE]/services/[SERVICE]/MapServer/WMTS/1.0.0/WMTSCapabilities.xml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayerInfo&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; layerInfo &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; serviceInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;getLayerInfos&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; layer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layerInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;SpatialReference&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;create&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;3857&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layerInitialise&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to share the WMTS file that you are experiencing trouble with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 17:07:41 GMT</pubDate>
    <dc:creator>AlexanderNohe1</dc:creator>
    <dc:date>2021-12-11T17:07:41Z</dc:date>
    <item>
      <title>OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369320#M2441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Does anyone have experience working against OGC WMTS services with Android Runtime SDK? Do you have example somewhere you could share? I am having trouble understanding how to go on with these as they don't seem to work as the other layer types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 05:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369320#M2441</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2016-06-30T05:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369321#M2442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already taken a look at the following documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/ogc/WMTSLayer.html" title="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/ogc/WMTSLayer.html" rel="nofollow noopener noreferrer" target="_blank"&gt;WMTSLayer | ArcGIS Android 10.2.8 API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, this is the syntax from that documentation on how to initialize that type of layer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSServiceInfo&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; serviceInfo &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSServiceInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;fetch&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="str" style="color: #008800;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F%5BSERVER%3APORT%5D%2F%5BINSTANCE%5D%2Fservices%2F%5BSERVICE%5D%2FMapServer%2FWMTS%2F1.0.0%2FWMTSCapabilities.xml" target="_blank"&gt;http://[SERVER:PORT]/[INSTANCE]/services/[SERVICE]/MapServer/WMTS/1.0.0/WMTSCapabilities.xml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayerInfo&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; layerInfo &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; serviceInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;getLayerInfos&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;().&lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;get&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;);&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; layer &lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd" style="color: #000088;"&gt;new&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layerInfo&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN class="typ" style="color: #660066;"&gt;SpatialReference&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;create&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="lit" style="color: #006666;"&gt;3857&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;));&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;
 layer&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln" style="color: #000000;"&gt;layerInitialise&lt;/SPAN&gt;&lt;SPAN class="pun" style="color: #666600;"&gt;();&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to share the WMTS file that you are experiencing trouble with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369321#M2442</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2021-12-11T17:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369322#M2443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the source for the wmts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;https://julkinen.liikennevirasto.fi/rasteripalvelu/wmts?request=getcapabilities&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried that example (will try again and report results) but if I understand correctly I run in to networkonmainthreadexception which basically means that I would need to do that fetch somehow on another thread?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With other layer types just adding it to the map seems to be enough.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369322#M2443</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2016-06-30T12:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369323#M2444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the topo basemap I was able to get this to work via the following Activity:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #cc7832;"&gt;package &lt;/SPAN&gt;com.arcgis.androidsupportcases.ogcwmts&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;android.os.AsyncTask&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;android.support.v7.app.AppCompatActivity&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;android.os.Bundle&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.MapView&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.event.OnStatusChangedListener&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.android.map.ogc.WMTSLayer&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.core.geometry.SpatialReference&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.core.ogc.wmts.WMTSLayerInfo&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;import &lt;/SPAN&gt;com.esri.core.ogc.wmts.WMTSServiceInfo&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public class &lt;/SPAN&gt;MainActivity &lt;SPAN style="color: #cc7832;"&gt;extends &lt;/SPAN&gt;AppCompatActivity {

&amp;nbsp; MapView &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;protected void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onCreate&lt;/SPAN&gt;(Bundle savedInstanceState) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;super&lt;/SPAN&gt;.onCreate(savedInstanceState)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;setContentView(R.layout.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;activity_main&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView &lt;/SPAN&gt;= (MapView) findViewById(R.id.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;map&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.setOnStatusChangedListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;OnStatusChangedListener() {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onStatusChanged&lt;/SPAN&gt;(Object o&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;STATUS status) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if &lt;/SPAN&gt;(status == STATUS.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;INITIALIZED&lt;/SPAN&gt;) {
&amp;nbsp; AsyncTask.&lt;SPAN style="font-style: italic;"&gt;execute&lt;/SPAN&gt;(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;Runnable() {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;run&lt;/SPAN&gt;() {
&amp;nbsp; WMTSServiceInfo serviceInfo = &lt;SPAN style="color: #cc7832;"&gt;null;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; try &lt;/SPAN&gt;{
&amp;nbsp; serviceInfo =
&amp;nbsp; WMTSServiceInfo.&lt;SPAN style="font-style: italic;"&gt;fetch&lt;/SPAN&gt;(&lt;SPAN style="color: #6a8759;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fserver.arcgisonline.com%2Farcgis%2Frest%2Fservices%2FWorld_Topo_Map%2FMapServer%2FWMTS%2F1.0.0%2FWMTSCapabilities.xml" target="_blank"&gt;http://server.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer/WMTS/1.0.0/WMTSCapabilities.xml&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;WMTSLayerInfo layerInfo = serviceInfo.getLayerInfos().get(&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; final &lt;/SPAN&gt;WMTSLayer layer = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;WMTSLayer(layerInfo&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;SpatialReference.&lt;SPAN style="font-style: italic;"&gt;create&lt;/SPAN&gt;(&lt;SPAN style="color: #6897bb;"&gt;3857&lt;/SPAN&gt;))&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;layer.layerInitialise()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;layer.setOnStatusChangedListener(&lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;OnStatusChangedListener() {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public void &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;onStatusChanged&lt;/SPAN&gt;(Object o&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;STATUS status) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;if&lt;/SPAN&gt;(status == STATUS.&lt;SPAN style="color: #9876aa; font-style: italic;"&gt;INITIALIZED&lt;/SPAN&gt;) {
&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;mapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #b389c5;"&gt;layer&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; }
&amp;nbsp; })&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;} &lt;SPAN style="color: #cc7832;"&gt;catch &lt;/SPAN&gt;(Exception e) {
&amp;nbsp; e.printStackTrace()&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; }
&amp;nbsp; })&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}
&amp;nbsp; }
&amp;nbsp; })&lt;SPAN style="color: #cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;
&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp; &lt;/SPAN&gt;}
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:07:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369323#M2444</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2021-12-11T17:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369324#M2445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the example! Anyhow I still can't open the wmts service I provided with the same code. The service in ther e works in Arcmap so it should be ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives EsriServiceException "Bad request" on fetch - with your link it works. Do you have any hints how to continue and what could be wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tero&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2016 13:24:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369324#M2445</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2016-07-02T13:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369325#M2446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It actually seems like there is a "bug" in the implementation of the wmtsserviceinfo fetch functionality: the wmts service I want to fetch is some kind of dynamic web service and not static xml file. If I download the output (which is xml) with wget i get the xml (with "wrong" name though) and if I copy it as xml file to another web server and use that in wmtsserviceinfo, it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Except of course that I can't make it show anything, but it goes forward from the bad request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same output as file in my own website: http://www.ronkko.fi/capa.xml&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will report this via the official esri channel as a bug  unless I get some tips here how to circumvent this. Perhaps it gets fixed eventually. Unfortunately for me I can't continue before the fix as I don't have way to have effect in the wmts server owner.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2016 06:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369325#M2446</guid>
      <dc:creator>TeroRönkkö</dc:creator>
      <dc:date>2016-07-03T06:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369326#M2447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tero,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at your WMTS endpoint and it looks like it only supports KVP mode, not REST. The default mode for the WMTSLayer in the Esri Android SDK is REST mode, so I think the requests being sent to the service are asking for the layer in REST mode. You can explicitly set the mode if you use WMTSLayerInfo:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; WMTSServiceInfo wmtsServiceInfo = WMTSServiceInfo.&lt;SPAN style="font-style: italic;"&gt;fetch&lt;/SPAN&gt;(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjulkinen.liikennevirasto.fi%2Frasteripalvelu%2Fwmts" rel="nofollow" target="_blank"&gt;https://julkinen.liikennevirasto.fi/rasteripalvelu/wmts&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;, WMTSServiceMode.&lt;SPAN style="background-color: #e4e4ff;"&gt;KVP&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(As you found, fetch does not switch to a background thread to do network requests like the layer constructors do, so do this on a background thread yourself). You can iterate all the WMTSLayerInfo items in the service this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Theres no constructor on WMTSLayer that allows you to set the KVP mode, and the layer starts to initialize by default, so you can't change the mode after that. However, there is a constructor where you can say not to immediately initialize the layer, as below - then set the mode to KVP, and then initialize the layer and add it to the mapView after that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; WMTSLayer layer = &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;WMTSLayer(&lt;SPAN style="color: #008000; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fjulkinen.liikennevirasto.fi%2Frasteripalvelu%2Fwmts" rel="nofollow" target="_blank"&gt;https://julkinen.liikennevirasto.fi/rasteripalvelu/wmts&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;null&lt;/SPAN&gt;, &lt;SPAN style="color: #000080; font-weight: bold;"&gt;false&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer.setServiceMode(WMTSServiceMode.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;KVP&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp; layer.layerInitialise();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this code I could see the WMTSLayer in the MapView. I added this to a blank map, as I think perhaps that service doesnt support web mercator (from a quick browse of the capabilities), so I'm assuming here you're adding this to a map where the basemap SpatialReference matches those supported by the WMTS service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 14:03:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369326#M2447</guid>
      <dc:creator>ShellyGill1</dc:creator>
      <dc:date>2016-07-05T14:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: OGC WMTS layer example for Android?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369327#M2448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a similar problem in .NET runtime version 100.1. For example, using the endpoint:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fopencache.statkart.no%2Fgatekeeper%2Fgk%2Fgk.open_wmts%3FVersion%3D1.0.0%26service%3Dwmts%26request%3Dgetcapabilities" target="_blank"&gt;http://opencache.statkart.no/gatekeeper/gk/gk.open_wmts?Version=1.0.0&amp;amp;service=wmts&amp;amp;request=getcapabilities&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In 100.1 I cannot find similar API calls to the solutions here. In particular, there doesn't seem to be any way to set the service mode of the layer to KVP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;WmtsService service = new WmtsService(_TiledUri);
&amp;nbsp;await service.LoadAsync();
&amp;nbsp;WmtsServiceInfo info = service.ServiceInfo;
&amp;nbsp;_TiledLayer = new WmtsLayer(info.LayerInfos.ToArray()[0]);
&amp;nbsp;_MapView.Map.Basemap.BaseLayers.Add(_TiledLayer);
&amp;nbsp;_TiledLayer.IsVisible = true;
&amp;nbsp;await _TiledLayer.LoadAsync();&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How is KVP service mode specified in 100.1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/ogc-wmts-layer-example-for-android/m-p/369327#M2448</guid>
      <dc:creator>PhilScovis</dc:creator>
      <dc:date>2021-12-12T16:23:25Z</dc:date>
    </item>
  </channel>
</rss>

