<?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: Failed to resolve layer view when loading custom tile layers as basemap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/73952#M6686</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Services with spatial reference in &lt;A href="https://spatialreference.org/ref/epsg/etrs89-utm-zone-33n/"&gt;UTM zones (25833) &lt;/A&gt;can be used as basemaps. I am assuming your workflow is like the following. I have tested the following workflow with a cached map service with wkid of 25833 and confirmed that it works in 4.10.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var layer = new TileLayer({&lt;BR /&gt;&amp;nbsp; url:&amp;nbsp; "yourrurl"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var basemap = new Basemap({&lt;BR /&gt;&amp;nbsp; baseLayers: [layer]&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt;&amp;nbsp; basemap: basemap&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide a simple test case if you cannot get it work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2019 16:05:15 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2019-08-15T16:05:15Z</dc:date>
    <item>
      <title>Failed to resolve layer view when loading custom tile layers as basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/73951#M6685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got an error when loading Tile layers as a custom base-map with&amp;nbsp;&amp;nbsp;projected coordinate systems(&lt;SPAN style="color: #172b4d; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;spatial reference 25833&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;) in ArcGisJS API 4.10.Error is as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;dojo.js:310 [esri.views.2d.layers.TileLayerView2D] #resolve() Failed to resolve layer view (layer title: 'xxxxx',&amp;nbsp; &amp;nbsp;id: 'xxxxxx')&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;&amp;nbsp;message&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;The spatial reference of this layer does not meet the requirements of the view&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e36eec;"&gt;&amp;nbsp;name&lt;/SPAN&gt;:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;layerview:spatial-reference-incompatible&lt;SPAN class="" style="color: #d5d5d5;"&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN style="color: #3d3d3d; "&gt;Is there any limitation to load projected coordinate type spatial&amp;nbsp;references Tile layer in arcgis js api.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;SPAN style="color: #3d3d3d; "&gt;Thank you !!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #e93f3b;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 05:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/73951#M6685</guid>
      <dc:creator>SachithSilva</dc:creator>
      <dc:date>2019-08-15T05:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to resolve layer view when loading custom tile layers as basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/73952#M6686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Services with spatial reference in &lt;A href="https://spatialreference.org/ref/epsg/etrs89-utm-zone-33n/"&gt;UTM zones (25833) &lt;/A&gt;can be used as basemaps. I am assuming your workflow is like the following. I have tested the following workflow with a cached map service with wkid of 25833 and confirmed that it works in 4.10.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;var layer = new TileLayer({&lt;BR /&gt;&amp;nbsp; url:&amp;nbsp; "yourrurl"&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; var basemap = new Basemap({&lt;BR /&gt;&amp;nbsp; baseLayers: [layer]&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var map = new Map({&lt;BR /&gt;&amp;nbsp; basemap: basemap&lt;BR /&gt; });&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please provide a simple test case if you cannot get it work?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Undral&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 16:05:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/73952#M6686</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2019-08-15T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to resolve layer view when loading custom tile layers as basemap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/1065854#M73427</link>
      <description>&lt;P&gt;I have met the similar problem too.&lt;/P&gt;&lt;P&gt;I have adopted an image tile layer as basemap, and want to add a scene layer to the map. It seems that I could only load one layer, the basemap or the scene layer, or it would report an error that indicates the failure of creating a layer view for my scene layer due to&amp;nbsp; 'spatial-reference-incompatible'.&lt;/P&gt;&lt;P&gt;However, if I only load the layer which contains a 3D building Object, it could load the picture we need.&lt;/P&gt;&lt;P&gt;By the way, the basemap and scene layer use the same projected coordinate system, a customized coordinate system 4547.&lt;/P&gt;&lt;P&gt;Here is my test code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var imgBasemap = new Basemap({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;baseLayers: [imageLayer],&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;title: "影像底图",&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;id: "imgBasemap"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;const map = new Map({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;// basemap: imgBasemap,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ground:new Ground({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;layers:[imageLayer]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;})&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;map.spatialReference = imgBasemap.spatialReference;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;const view = new SceneView({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;container: "viewDiv", // Reference to the DOM node that will contain the view&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;map: map, // References the map object created in step 3&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// Add scene layer&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;var sceneLayer = new SceneLayer({&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;url: url&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;});&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;map.add(sceneLayer);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have omitted the definition of URL and basemap due to the privacy concern. They are offered by the third party.&amp;nbsp;&lt;/P&gt;&lt;P&gt;May you give me some advice?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Shifan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 03:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/failed-to-resolve-layer-view-when-loading-custom/m-p/1065854#M73427</guid>
      <dc:creator>ShifanCheng</dc:creator>
      <dc:date>2021-06-08T03:01:48Z</dc:date>
    </item>
  </channel>
</rss>

