Hi, I’m new to JavaScript, but are starting to get a need app build up, with the help from GeoNet. I’ve used the layerWidget, but some layers I need to hide in the widget. I would expect to use the listMode property to do that, but I can’t seem to hit the right syntax to do so.
I’m creating a SceneView with a WebScene, and the layerWidget shows all of those layers.
var layerWidget = new LayerList({
view: sceneView,
container: "layerPanelDiv"
});
But if I want the layer widget not to show a layer from the scene called Cars, so the end user not will be able to turn it off or even see that it exist, how do I do so?
Thanks.