<?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: API 4.9, LayerList + TileLayer bug? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28107#M2402</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;It is an expected behavior at 4.9. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers" rel="nofollow noopener noreferrer" target="_blank"&gt;TileLayer.sublayers&lt;/A&gt;&amp;nbsp;property was added at 4.9. So you have to&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#listMode" rel="nofollow noopener noreferrer" target="_blank"&gt;TileLayer.listMode&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;hide-children&lt;/CODE&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to not show the sublayers information as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;TileLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsit5.sistemigis.it%2Fsit%2Frest%2Fservices%2FDemo%2FDemoCache%2FMapServer" target="_blank"&gt;https://sit5.sistemigis.it/sit/rest/services/Demo/DemoCache/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Tile layer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; listMode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"hide-children"&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:08:08 GMT</pubDate>
    <dc:creator>UndralBatsukh</dc:creator>
    <dc:date>2021-12-10T21:08:08Z</dc:date>
    <item>
      <title>API 4.9, LayerList + TileLayer bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28106#M2401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give a look at this sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://jsbin.com/fatojubiqe/edit?html,output" title="https://jsbin.com/fatojubiqe/edit?html,output"&gt;API 4.8&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It just adds a Tile layer to a LayerList widget (with api 4.8) and everything looks fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you switch to 4.9 (&lt;A class="link-titled" href="https://jsbin.com/qafaxulepu/1/edit?html,output" title="https://jsbin.com/qafaxulepu/1/edit?html,output"&gt;API 4.9&lt;/A&gt;)&amp;nbsp; you can see a totally different behaviour. It looks like that the tile layer becomes a group layer and every single sub layer is added as a layer. I don't think this is the intended behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it a bug?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Davide&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 13:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28106#M2401</guid>
      <dc:creator>DavideLimosani</dc:creator>
      <dc:date>2018-12-04T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: API 4.9, LayerList + TileLayer bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28107#M2402</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;It is an expected behavior at 4.9. &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#sublayers" rel="nofollow noopener noreferrer" target="_blank"&gt;TileLayer.sublayers&lt;/A&gt;&amp;nbsp;property was added at 4.9. So you have to&amp;nbsp;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;set the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#listMode" rel="nofollow noopener noreferrer" target="_blank"&gt;TileLayer.listMode&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE&gt;hide-children&lt;/CODE&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to not show the sublayers information as shown below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; layer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;TileLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fsit5.sistemigis.it%2Fsit%2Frest%2Fservices%2FDemo%2FDemoCache%2FMapServer" target="_blank"&gt;https://sit5.sistemigis.it/sit/rest/services/Demo/DemoCache/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; title&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Tile layer"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; listMode&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"hide-children"&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:08:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28107#M2402</guid>
      <dc:creator>UndralBatsukh</dc:creator>
      <dc:date>2021-12-10T21:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: API 4.9, LayerList + TileLayer bug?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28108#M2403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/240445"&gt;Davide Limosani&lt;/A&gt;, there actually is a bug here but the workaround &lt;A href="https://community.esri.com/migrated-users/51882"&gt;Undral Batsukh&lt;/A&gt;&amp;nbsp;provided is a good one! thanks for letting us know about the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2018 19:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/api-4-9-layerlist-tilelayer-bug/m-p/28108#M2403</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2018-12-11T19:00:19Z</dc:date>
    </item>
  </channel>
</rss>

