Layer List Item Toggle off by default

420
2
Jump to solution
01-20-2023 08:55 AM
Key
by
New Contributor II

Hi,

Using the ArcGIS js API v4.25, I am having difficulty figuring out how to set a layer list items toggle to be turned off by default.

Any guidance would be appreciated.

 

Thanks in advance.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

If you set the layer's visible property to false, it will be toggled off in the Layer List.

View solution in original post

2 Replies
KenBuja
MVP Esteemed Contributor

If you set the layer's visible property to false, it will be toggled off in the Layer List.

Key
by
New Contributor II

Thanks Ken! 

0 Kudos