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-icon-for/td-p/347518
Would anyone know how to do it for 4.29?
Thanks!
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.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.