<?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: My layerlist is showing an untitled layer in the set. How do I remove? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/my-layerlist-is-showing-an-untitled-layer-in-the/m-p/1352968#M6833</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;If you added a new graphics layer into your app, then this could be what is causing the untitled layer to show up. You can configure it to be hidden from your LayerList by setting the listMode to "hide", see here:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        const graphicsLayer = new GraphicsLayer({listMode: "hide"});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2023 14:45:18 GMT</pubDate>
    <dc:creator>EmilyGoldsmith</dc:creator>
    <dc:date>2023-11-23T14:45:18Z</dc:date>
    <item>
      <title>My layerlist is showing an untitled layer in the set. How do I remove?</title>
      <link>https://community.esri.com/t5/developers-questions/my-layerlist-is-showing-an-untitled-layer-in-the/m-p/1307977#M6670</link>
      <description>&lt;P&gt;How do I take out the untitled layer from my layer list on my map? When I turn off the layer nothing switches on or off which makes me believe that there is no information for the untitled layer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code for the layer list is as follows:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;when&lt;/SPAN&gt;&lt;SPAN&gt;(() &lt;/SPAN&gt;&lt;SPAN&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;layerList&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;LayerList&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;visible&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;false&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;selectionEnabled&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;true&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;expand&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt; &lt;SPAN&gt;Expand&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;content&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;layerList&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;// Add widget to the top right corner of the view&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ui&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;expand&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;"top-left"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="untitled layer.PNG" style="width: 294px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/75344i66E5502C4A50FAD9/image-size/large?v=v2&amp;amp;px=999" role="button" title="untitled layer.PNG" alt="untitled layer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 16:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/my-layerlist-is-showing-an-untitled-layer-in-the/m-p/1307977#M6670</guid>
      <dc:creator>ChesouyeCoye</dc:creator>
      <dc:date>2023-07-13T16:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: My layerlist is showing an untitled layer in the set. How do I remove?</title>
      <link>https://community.esri.com/t5/developers-questions/my-layerlist-is-showing-an-untitled-layer-in-the/m-p/1352968#M6833</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;If you added a new graphics layer into your app, then this could be what is causing the untitled layer to show up. You can configure it to be hidden from your LayerList by setting the listMode to "hide", see here:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;        const graphicsLayer = new GraphicsLayer({listMode: "hide"});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 14:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/my-layerlist-is-showing-an-untitled-layer-in-the/m-p/1352968#M6833</guid>
      <dc:creator>EmilyGoldsmith</dc:creator>
      <dc:date>2023-11-23T14:45:18Z</dc:date>
    </item>
  </channel>
</rss>

