Is there a way to customize the layer list widget to use radio buttons instead of check boxes?
Chad,
The LayerList Widget's code for check boxes can be found in the LayerListView.js and Setting.js
I don't know how difficult it would be but there is where I would look first.
Both scripts use this:
'dijit/form/CheckBox'
I did not change the checkboxes to radio buttons but the functionality behind the checkboxes for sublayers in a map service act like radio buttons (i.e. only on sublayer is visible at a time).
https://community.esri.com/thread/182116-layerlist-21-option-to-displays-sublayer
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.