Select to view content in your preferred language

LayerList 4.29 Hide group visible checkbox in layerlist

342
1
05-13-2024 06:29 PM
Steve_Dale
Emerging Contributor

Hi,

Previous 4.29 you could hide the group checkbox using CSS stated in this post here:

.esri-layer-list__child-toggle + .esri-layer-list__item-label > .esri-layer-list__item-toggle {
 display:none;
}‍‍‍

https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-m-trying-to-hide-the-eyeball-ic...

Would anyone know how to do it for 4.29?

Thanks!

Tags (2)
0 Kudos
1 Reply
Steve_Dale
Emerging Contributor

I was able to hide the group layer checkboxes  by saving all the titles of group layers to an array in the defineActions function for the layerlist.  Then when layers are finished loading I am able to use querySelector to select out group layers in the layerlist and set the checkbox style to display none.

 

0 Kudos