<?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 I add this web tile layer to a 3d scene? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240937#M22348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like&amp;nbsp;you are missing to add your server to CORS&amp;nbsp;(see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;config | API Reference | ArcGIS API for JavaScript 4.1&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add the following to your code, tiles should be loading:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;esriConfig.request.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftiles.gina.alaska.edu" rel="nofollow" target="_blank"&gt;http://tiles.gina.alaska.edu&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Veronika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 06:39:43 GMT</pubDate>
    <dc:creator>VeronikaLanders</dc:creator>
    <dc:date>2016-10-10T06:39:43Z</dc:date>
    <item>
      <title>Can I add this web tile layer to a 3d scene?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240936#M22347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to modify the WebTileLayer 3d example (&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/layers-webtile-3d/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/layers-webtile-3d/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;WebTileLayer 3D | ArcGIS API for JavaScript 4.1&lt;/A&gt;) to use the tiles at this address:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://tiles.gina.alaska.edu/tiles/SPOT5.SDMI.ORTHO_RGB/tile/{x}/{y}/{z}.png" title="http://tiles.gina.alaska.edu/tiles/SPOT5.SDMI.ORTHO_RGB/tile/{x}/{y}/{z}.png" rel="nofollow noopener noreferrer" target="_blank"&gt;http://tiles.gina.alaska.edu/tiles/SPOT5.SDMI.ORTHO_RGB/tile/{x}/{y}/{z}.png&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I end up with the code below but the tiles never get loaded.&amp;nbsp;They load just fine in&amp;nbsp;a Cesium web globe app so I know they should work. Can anyone help me troubleshoot this?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
 &amp;lt;meta charset="utf-8"&amp;gt;
 &amp;lt;meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no"&amp;gt;
 &amp;lt;title&amp;gt;WebTileLayer 3D - 4.1&amp;lt;/title&amp;gt;

 &amp;lt;style&amp;gt;
 html,
 body,
 #viewDiv {
 padding: 0;
 margin: 0;
 height: 100%;
 width: 100%;
 }
 &amp;lt;/style&amp;gt;

 &amp;lt;link rel="stylesheet" href="https://js.arcgis.com/4.1/esri/css/main.css"&amp;gt;
 &amp;lt;script src="https://js.arcgis.com/4.1/"&amp;gt;&amp;lt;/script&amp;gt;

 &amp;lt;script&amp;gt;
 require([
 "esri/config",
 "esri/layers/WebTileLayer",
 "esri/Map",
 "esri/views/SceneView",
 "dojo/dom",
 "dojo/domReady!"
 ], function(esriConfig, WebTileLayer, Map, SceneView, dom) {

 esriConfig.request.corsEnabledServers
 .push("a.tile.stamen.com", "b.tile.stamen.com", "c.tile.stamen.com",
 "d.tile.stamen.com");

 var map = new Map({
 ground: "world-elevation"
 });

 var view = new SceneView({
 container: "viewDiv",
 map: map,
 scale: 10000000,
 center: [-154, 62]
 });

 var tiledLayer = new WebTileLayer({
 urlTemplate: "http://tiles.gina.alaska.edu/tiles/SPOT5.SDMI.ORTHO_RGB/tile/{col}/{row}/{level}.png",
 });

 map.add(tiledLayer);
 });
 &amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
 &amp;lt;div id="viewDiv"&amp;gt;&amp;lt;/div&amp;gt;
&amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240936#M22347</guid>
      <dc:creator>EvanThoms</dc:creator>
      <dc:date>2021-12-12T16:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add this web tile layer to a 3d scene?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240937#M22348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Evan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like&amp;nbsp;you are missing to add your server to CORS&amp;nbsp;(see&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request"&gt;config | API Reference | ArcGIS API for JavaScript 4.1&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you add the following to your code, tiles should be loading:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN&gt;esriConfig.request.corsEnabledServers.push("&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Ftiles.gina.alaska.edu" rel="nofollow" target="_blank"&gt;http://tiles.gina.alaska.edu&lt;/A&gt;&lt;SPAN&gt;");&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Veronika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 06:39:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240937#M22348</guid>
      <dc:creator>VeronikaLanders</dc:creator>
      <dc:date>2016-10-10T06:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add this web tile layer to a 3d scene?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240938#M22349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent! Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 17:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-add-this-web-tile-layer-to-a-3d-scene/m-p/240938#M22349</guid>
      <dc:creator>EvanThoms</dc:creator>
      <dc:date>2016-10-11T17:55:04Z</dc:date>
    </item>
  </channel>
</rss>

