<?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: Can't load WMTS Layer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1189985#M5804</link>
    <description>&lt;P&gt;Hello again! I have some updates.&lt;/P&gt;&lt;P data-unlink="true"&gt;The reason Runtime had trouble loading this service is: this service specifies SupportedCRS of the default tile matrix set ("InspireCRS84Quad") in an unusual way. It is declared as &lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;http://www.opengis.net/def/crs/OGC/1.3/CRS84&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; instead of the usual&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;CRS84&lt;/FONT&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;CRS:84&lt;/FONT&gt;&lt;/STRONG&gt; or &lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;urn:ogc:def:crs:OGC:1.3:CRS84&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;formats. I've only seen this pattern on newer OGC-API-Features services before, never on WMTS. Future versions of Runtime should be able to parse this rare format too.&lt;/P&gt;&lt;P data-unlink="true"&gt;The workaround is to use a WMTSLayer constructor that takes a TileMatrixName. Other tile matrix sets on this service do not have the same problem.&amp;nbsp; For example, you can use "GoogleMapsCompatible" in a WebMercator map (it looks best) or "EPSG:4326" in a WGS84/Plate Carree map.&amp;nbsp; I was able to get this service working with Runtime 100.14.1 in both SceneView and MapView:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2022-07-06_100710.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45330iF99E8ACE07C44BB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-06_100710.jpg" alt="2022-07-06_100710.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this solves your problem!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2022 17:11:56 GMT</pubDate>
    <dc:creator>MatveiStefarov</dc:creator>
    <dc:date>2022-07-06T17:11:56Z</dc:date>
    <item>
      <title>Can't load WMTS Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1183118#M5781</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;&lt;P&gt;I'm trying to load a simple WMTS Layer in my map. The version of the ESRI Android SDK that I use is 100.3 and I have not been able to load the WMTS Layer. I've followed the instructions of the API documentation for version 100.3 (I've downloaded it). Any help would be very appreciated. Below you will find the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="java"&gt;mapa = getView().findViewById(R.id.mapView);
ArcGISMap map = new ArcGISMap();
mapa.setMap(map);

WmtsLayer wmtsLayer = new WmtsLayer("https://www.ign.es/wmts/mapa-raster", "MTN");
//wmtsLayer.loadAsync();
//final WmtsLayer wmtsLayer = new WmtsLayer("http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/WMTS?", "WorldTimeZones");
wmtsLayer.addDoneLoadingListener(new Runnable() {
    public void run() {
        if (wmtsLayer.getLoadStatus() == LoadStatus.LOADED) {
            Basemap baseMap = new Basemap(wmtsLayer);
            map.setBasemap(baseMap);
            Log.d("Capa WMTS: ", map.getLoadStatus().toString());
        }
    }
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 13:37:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1183118#M5781</guid>
      <dc:creator>FranAcuñaParra</dc:creator>
      <dc:date>2022-06-15T13:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load WMTS Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1184560#M5785</link>
      <description>&lt;P&gt;Hello&amp;nbsp;Francisco,&lt;/P&gt;&lt;P&gt;I was able to reproduce this error with Runtime 100.3 and even with the latest update (100.14.1). I see that this WMTS layer fails to load with "Invalid argument: tile info origin must have a spatial reference."&lt;/P&gt;&lt;P&gt;I am not sure about the cause yet.&amp;nbsp; I will continue investigating this problem, and I will let you know if I have any updates or if I find a workaround.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 05:33:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1184560#M5785</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2022-06-21T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load WMTS Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1184637#M5786</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hello&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/256344"&gt;@MatveiStefarov&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt; &lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;your&lt;/SPAN&gt; &lt;SPAN class=""&gt;reply&lt;/SPAN&gt;&lt;SPAN class=""&gt;. &lt;/SPAN&gt;&lt;SPAN class=""&gt;If&lt;/SPAN&gt; &lt;SPAN class=""&gt;you&lt;/SPAN&gt; &lt;SPAN class=""&gt;can&lt;/SPAN&gt; &lt;SPAN class=""&gt;let&lt;/SPAN&gt; &lt;SPAN class=""&gt;me&lt;/SPAN&gt; &lt;SPAN class=""&gt;know&lt;/SPAN&gt; &lt;SPAN class=""&gt;any&lt;/SPAN&gt; &lt;SPAN class=""&gt;updates&lt;/SPAN&gt; &lt;SPAN class=""&gt;or&lt;/SPAN&gt; &lt;SPAN class=""&gt;workaround&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;it&lt;/SPAN&gt; &lt;SPAN class=""&gt;would&lt;/SPAN&gt; &lt;SPAN class=""&gt;be&lt;/SPAN&gt; &lt;SPAN class=""&gt;great&lt;/SPAN&gt;&lt;SPAN class=""&gt;. &lt;/SPAN&gt;&lt;SPAN class=""&gt;On&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;other&lt;/SPAN&gt; &lt;SPAN class=""&gt;hand&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;I&lt;/SPAN&gt; &lt;SPAN class=""&gt;can&lt;/SPAN&gt; &lt;SPAN class=""&gt;load&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;WMTS&lt;/SPAN&gt; &lt;SPAN class=""&gt;Layer&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;URL&lt;/SPAN&gt; &lt;SPAN class=""&gt;and&lt;/SPAN&gt; &lt;SPAN class=""&gt;the name&lt;/SPAN&gt; &lt;SPAN class=""&gt;provided&lt;/SPAN&gt; &lt;SPAN class=""&gt;above&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;code&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;with&lt;/SPAN&gt; &lt;SPAN class=""&gt;the&lt;/SPAN&gt; &lt;SPAN class=""&gt;ArcGIS&lt;/SPAN&gt; &lt;SPAN class=""&gt;API&lt;/SPAN&gt; &lt;SPAN class=""&gt;Javascript&lt;/SPAN&gt;&amp;nbsp;in another project&amp;nbsp;&lt;SPAN class=""&gt;without&lt;/SPAN&gt; &lt;SPAN class=""&gt;any&lt;/SPAN&gt; &lt;SPAN class=""&gt;problem&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;just&lt;/SPAN&gt; &lt;SPAN class=""&gt;if&lt;/SPAN&gt; &lt;SPAN class=""&gt;it&lt;/SPAN&gt; &lt;SPAN class=""&gt;helps&lt;/SPAN&gt;&lt;SPAN class=""&gt;. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thank&lt;/SPAN&gt; &lt;SPAN class=""&gt;you&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 13:12:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1184637#M5786</guid>
      <dc:creator>FranAcuñaParra</dc:creator>
      <dc:date>2022-06-21T13:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load WMTS Layer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1189985#M5804</link>
      <description>&lt;P&gt;Hello again! I have some updates.&lt;/P&gt;&lt;P data-unlink="true"&gt;The reason Runtime had trouble loading this service is: this service specifies SupportedCRS of the default tile matrix set ("InspireCRS84Quad") in an unusual way. It is declared as &lt;FONT size="2"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;http://www.opengis.net/def/crs/OGC/1.3/CRS84&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt; instead of the usual&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;CRS84&lt;/FONT&gt;&lt;/STRONG&gt; or &lt;STRONG&gt;&lt;FONT face="courier new,courier" size="2"&gt;CRS:84&lt;/FONT&gt;&lt;/STRONG&gt; or &lt;FONT face="courier new,courier" size="2"&gt;&lt;STRONG&gt;urn:ogc:def:crs:OGC:1.3:CRS84&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;formats. I've only seen this pattern on newer OGC-API-Features services before, never on WMTS. Future versions of Runtime should be able to parse this rare format too.&lt;/P&gt;&lt;P data-unlink="true"&gt;The workaround is to use a WMTSLayer constructor that takes a TileMatrixName. Other tile matrix sets on this service do not have the same problem.&amp;nbsp; For example, you can use "GoogleMapsCompatible" in a WebMercator map (it looks best) or "EPSG:4326" in a WGS84/Plate Carree map.&amp;nbsp; I was able to get this service working with Runtime 100.14.1 in both SceneView and MapView:&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2022-07-06_100710.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/45330iF99E8ACE07C44BB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-06_100710.jpg" alt="2022-07-06_100710.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this solves your problem!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2022 17:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/can-t-load-wmts-layer/m-p/1189985#M5804</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2022-07-06T17:11:56Z</dc:date>
    </item>
  </channel>
</rss>

