<?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 [ElevayionLayer] Subclassing BaseElevationLayer generates console.error() message in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevayionlayer-subclassing-baseelevationlayer/m-p/421725#M38816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app subclasses the&amp;nbsp;BaseElevationLayer to add altitude exaggeration exactly as in &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-custom-elevation-exaggerated" rel="nofollow noopener noreferrer" target="_blank"&gt;the sandbox example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If first notice the console errors using my app but they are reproducible with the sandbox example provided you spend some time navigating to places out of the cache (try zoom-in / zoom-out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should see some errors in the javascript console:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 14,5750,8403 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 14,5749,8403 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 15,11500,16806 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
[...]&lt;/PRE&gt;&lt;P&gt;I end up getting a lot of those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They originate from the following code (in the ArcGIS API):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; b.prototype.dataMissing = function(a, b, c) {
   c.notInTilemap || &lt;STRONG&gt;console.error("Tile " + this.lij.toString() + " layer " + b + "/" + a + " error " + c);&lt;/STRONG&gt;
   a = this.layerInfo&lt;B&gt;&lt;A&gt;;
   a.dataMissing = !0;
   for (b = 0; b &amp;lt; a.waitingAgents.length; b++)
   a.waitingAgents&lt;B&gt;.dataMissing();
   a.waitingAgents.length = 0;
   this._updateMemoryUsed()
 }&lt;/B&gt;&lt;/A&gt;&lt;/B&gt;&lt;/PRE&gt;&lt;P&gt;I haven't investigated further as tracing minified code is not fun !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be that this code is in the BaseElevationLayer but is not in the actual ElevationLayer (as errors are not generated with a vanilla ElevationLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be super nice to have a way to disable those errors as they look messy in the javascript console.&lt;/P&gt;&lt;P&gt;It's probably low priority as it doesn't seem to prevent everything else to work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:27:16 GMT</pubDate>
    <dc:creator>VictorBerchet</dc:creator>
    <dc:date>2021-12-12T16:27:16Z</dc:date>
    <item>
      <title>[ElevayionLayer] Subclassing BaseElevationLayer generates console.error() message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevayionlayer-subclassing-baseelevationlayer/m-p/421725#M38816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My app subclasses the&amp;nbsp;BaseElevationLayer to add altitude exaggeration exactly as in &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=layers-custom-elevation-exaggerated" rel="nofollow noopener noreferrer" target="_blank"&gt;the sandbox example&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If first notice the console errors using my app but they are reproducible with the sandbox example provided you spend some time navigating to places out of the cache (try zoom-in / zoom-out).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should see some errors in the javascript console:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 14,5750,8403 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 14,5749,8403 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;SceneView.js:3567 Tile 15,11500,16806 layer 0/0 error [tile-map:tile-unavailable]: Tile is not available&lt;/SPAN&gt;
[...]&lt;/PRE&gt;&lt;P&gt;I end up getting a lot of those.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They originate from the following code (in the ArcGIS API):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; b.prototype.dataMissing = function(a, b, c) {
   c.notInTilemap || &lt;STRONG&gt;console.error("Tile " + this.lij.toString() + " layer " + b + "/" + a + " error " + c);&lt;/STRONG&gt;
   a = this.layerInfo&lt;B&gt;&lt;A&gt;;
   a.dataMissing = !0;
   for (b = 0; b &amp;lt; a.waitingAgents.length; b++)
   a.waitingAgents&lt;B&gt;.dataMissing();
   a.waitingAgents.length = 0;
   this._updateMemoryUsed()
 }&lt;/B&gt;&lt;/A&gt;&lt;/B&gt;&lt;/PRE&gt;&lt;P&gt;I haven't investigated further as tracing minified code is not fun !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess would be that this code is in the BaseElevationLayer but is not in the actual ElevationLayer (as errors are not generated with a vanilla ElevationLayer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be super nice to have a way to disable those errors as they look messy in the javascript console.&lt;/P&gt;&lt;P&gt;It's probably low priority as it doesn't seem to prevent everything else to work as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevayionlayer-subclassing-baseelevationlayer/m-p/421725#M38816</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2021-12-12T16:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: [ElevayionLayer] Subclassing BaseElevationLayer generates console.error() message</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevayionlayer-subclassing-baseelevationlayer/m-p/1032438#M71915</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;I have seen that the JS API actually has &lt;A href="http://140.207.158.228/latest/api-reference/esri-config.html#LogInterceptor" target="_self"&gt;log interceptors&lt;/A&gt;. This would be a great solution to disable those annoying log messages if the code was not using a call to console.error().&lt;/P&gt;&lt;P&gt;Do you think there is any chance that those console.error() calls higlighted in my initial message could be replaced by proper log calls that we would be able to filter ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 15:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/elevayionlayer-subclassing-baseelevationlayer/m-p/1032438#M71915</guid>
      <dc:creator>VictorBerchet</dc:creator>
      <dc:date>2021-03-03T15:27:56Z</dc:date>
    </item>
  </channel>
</rss>

