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:
view.when(() => {
const layerList = new LayerList({
view: view,
visible: false,
selectionEnabled: true
});
const expand = new Expand({
view: view,
content: layerList
});
// Add widget to the top right corner of the view
view.ui.add(expand, "top-left");
});