<?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: WMTS Service works in ArcGIS Pro but not ArcGIS Javascript - uses direct XML file, not service in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1686109#M88181</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The server you are trying doesn't have CORS headers configured for JavaScript (and the Maps SDK) to correctly fetch the capabilities file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/148811i8218F9BF5A57B537/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 00:31:27 GMT</pubDate>
    <dc:creator>YannCabon</dc:creator>
    <dc:date>2026-02-24T00:31:27Z</dc:date>
    <item>
      <title>WMTS Service works in ArcGIS Pro but not ArcGIS Javascript - uses direct XML file, not service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1685663#M88166</link>
      <description>&lt;P&gt;I am trying to consume this site's WMTS service as described:&amp;nbsp;&lt;A href="https://rangelands.app/support/19-viewing-rap-data-in-your-gis" target="_blank"&gt;https://rangelands.app/support/19-viewing-rap-data-in-your-gis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can load it into ArcGIS Pro using their directions and URL, but I cannot get it to load in ArcGIS Javascript SDK, as it always seem to try to make a GetCapabilities request, which doesn't seem to exist on their server. In Pro I can see it's using the exact URL I gave it (the .xml file).&lt;/P&gt;&lt;P&gt;Is there a way to not have the 4.0 SDK (I'm on 4.34) not make this GetCapabilities request? I am not sure what Pro is doing differently.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For reference I am doing this:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;let&lt;/SPAN&gt; &lt;SPAN&gt;wmts&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;A href="https://rangelands.app/wmts/vegetationWMTS.xml" target="_blank"&gt;https://rangelands.app/wmts/vegetationWMTS.xml&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;wmtsLayer&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;WMTSLayer&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;url&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;wmts&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;title&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"Rangeland Analysis Platform"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;id&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"rangeland-analysis-platform"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;visible&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;map&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;wmtsLayer&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And I have ensured this URL is allowed per my server's connect-src policy.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Feb 2026 21:59:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1685663#M88166</guid>
      <dc:creator>mjperez-usgs</dc:creator>
      <dc:date>2026-02-20T21:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: WMTS Service works in ArcGIS Pro but not ArcGIS Javascript - uses direct XML file, not service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1686109#M88181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The server you are trying doesn't have CORS headers configured for JavaScript (and the Maps SDK) to correctly fetch the capabilities file.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/148811i8218F9BF5A57B537/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 00:31:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1686109#M88181</guid>
      <dc:creator>YannCabon</dc:creator>
      <dc:date>2026-02-24T00:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: WMTS Service works in ArcGIS Pro but not ArcGIS Javascript - uses direct XML file, not service</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1686778#M88196</link>
      <description>&lt;P&gt;Thanks. I will contact the developers and see if I can get them to set it up.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Feb 2026 22:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/wmts-service-works-in-arcgis-pro-but-not-arcgis/m-p/1686778#M88196</guid>
      <dc:creator>mjperez-usgs</dc:creator>
      <dc:date>2026-02-25T22:42:19Z</dc:date>
    </item>
  </channel>
</rss>

