<?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 Custom tile layer bug in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-tile-layer-bug/m-p/56649#M4979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to reproduce custom tile layer (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-custom-tilelayer/index.html"&gt;here&lt;/A&gt;) but&amp;nbsp;it show me wrong tiles.&lt;/P&gt;&lt;P&gt;Is it bug? Is it possible to fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Efim Dezhin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Nov 2019 12:15:23 GMT</pubDate>
    <dc:creator>EfimDezhin</dc:creator>
    <dc:date>2019-11-10T12:15:23Z</dc:date>
    <item>
      <title>Custom tile layer bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-tile-layer-bug/m-p/56649#M4979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to reproduce custom tile layer (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-custom-tilelayer/index.html"&gt;here&lt;/A&gt;) but&amp;nbsp;it show me wrong tiles.&lt;/P&gt;&lt;P&gt;Is it bug? Is it possible to fix?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Efim Dezhin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Nov 2019 12:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-tile-layer-bug/m-p/56649#M4979</guid>
      <dc:creator>EfimDezhin</dc:creator>
      <dc:date>2019-11-10T12:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Custom tile layer bug</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-tile-layer-bug/m-p/56650#M4980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Efim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is a documentation problem, I'll work on getting this fixed in the next documentation update. Until then, the solution is to pass the &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal" rel="nofollow noopener noreferrer" target="_blank"&gt;AbortSignal&lt;/A&gt; in the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" rel="nofollow noopener noreferrer" target="_blank"&gt;esriRequest&lt;/A&gt; method:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// This method fetches tiles for the specified level and size.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Override this method to process the data returned from the server.&lt;/SPAN&gt;
fetchTile&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;function&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;level&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; col&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; options&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
   &lt;SPAN class="comment token"&gt;// call getTileUrl() method to construct the URL to tiles&lt;/SPAN&gt;
   &lt;SPAN class="comment token"&gt;// for a given level, row and col provided by the LayerView&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; url &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;this&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getTileUrl&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;level&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; col&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

   &lt;SPAN class="comment token"&gt;// request for tiles based on the generated url&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;esriRequest&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
      responseType&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"image"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
      signal&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; options&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;signal
   &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here's the working sample:&amp;nbsp;&lt;A class="link-titled" href="https://codepen.io/ralucanicola/pen/abbjwax?editors=1000" title="https://codepen.io/ralucanicola/pen/abbjwax?editors=1000" rel="nofollow noopener noreferrer" target="_blank"&gt;https://codepen.io/ralucanicola/pen/abbjwax?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reporting this!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 22:09:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-tile-layer-bug/m-p/56650#M4980</guid>
      <dc:creator>RalucaNicola1</dc:creator>
      <dc:date>2021-12-10T22:09:20Z</dc:date>
    </item>
  </channel>
</rss>

