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.
My code for the layer list is as follows:
Hello.
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:
const graphicsLayer = new GraphicsLayer({listMode: "hide"});
I hope this helps.