<?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: Unable to override fetchTile() in WebTileLayer.createSubclass in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241295#M79647</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486157"&gt;@AriefAbuBakar&lt;/a&gt;&amp;nbsp; it's very possible that your code was working accidentally. You need to use the "extends" keyword when building subclasses with ES modules: &lt;A href="https://developers.arcgis.com/javascript/latest/implementing-accessor/#create-a-simple-subclass" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/implementing-accessor/#create-a-simple-subclass&lt;/A&gt;. It can be challenging when overriding API functionality because properties, methods and patterns within the underlying API Class are subject to change.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Psuedo-example using @arcgis/core ES modules
class ExampleWebTileLayer extends WebTileLayer {
   constructor(properties?:any) {
      super(properties);
   }
   . . . 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Dec 2022 19:16:27 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2022-12-14T19:16:27Z</dc:date>
    <item>
      <title>Unable to override fetchTile() in WebTileLayer.createSubclass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1240962#M79641</link>
      <description>&lt;P&gt;Hi, I can no longer override fetchTile() in WebTileLayer.createSubclass() after I upgrade the ES module from version &lt;STRONG&gt;4.24.*&lt;/STRONG&gt; to version &lt;STRONG&gt;4.25.*.&lt;/STRONG&gt;&amp;nbsp;It is no longer call the fetchTile() function. I tried the CDN version from&amp;nbsp;&lt;A href="https://js.arcgis.com/4.25/" target="_blank"&gt;https://js.arcgis.com/4.25/&lt;/A&gt;&amp;nbsp;but its working fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 07:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1240962#M79641</guid>
      <dc:creator>AriefAbuBakar</dc:creator>
      <dc:date>2022-12-14T07:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to override fetchTile() in WebTileLayer.createSubclass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241295#M79647</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486157"&gt;@AriefAbuBakar&lt;/a&gt;&amp;nbsp; it's very possible that your code was working accidentally. You need to use the "extends" keyword when building subclasses with ES modules: &lt;A href="https://developers.arcgis.com/javascript/latest/implementing-accessor/#create-a-simple-subclass" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/implementing-accessor/#create-a-simple-subclass&lt;/A&gt;. It can be challenging when overriding API functionality because properties, methods and patterns within the underlying API Class are subject to change.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;// Psuedo-example using @arcgis/core ES modules
class ExampleWebTileLayer extends WebTileLayer {
   constructor(properties?:any) {
      super(properties);
   }
   . . . 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 19:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241295#M79647</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-12-14T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to override fetchTile() in WebTileLayer.createSubclass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241406#M79648</link>
      <description>&lt;P&gt;Update - this looks like a regression at 4.25, thanks for reporting. We've opened an issue to fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 23:22:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241406#M79648</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2022-12-14T23:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to override fetchTile() in WebTileLayer.createSubclass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241615#M79654</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/180"&gt;@AndyGup&lt;/a&gt;&amp;nbsp;said, it's a regression. If you override `fetchTile()` I'd suggest to extend `BaseTileLayer`&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-BaseTileLayer.html&lt;/A&gt;&amp;nbsp;which is better suited for extensibility.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1241615#M79654</guid>
      <dc:creator>YannCabon</dc:creator>
      <dc:date>2022-12-15T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to override fetchTile() in WebTileLayer.createSubclass</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1259188#M80300</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/486157"&gt;@AriefAbuBakar&lt;/a&gt;this is now fixed and will be available at 4.26. You can test it today by installing the latest 'next' build:&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;npm i @arcgis/core@next&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2023 00:53:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-override-fetchtile-in-webtilelayer/m-p/1259188#M80300</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2023-02-17T00:53:09Z</dc:date>
    </item>
  </channel>
</rss>

