Is there a way to customize the layer list widget to use radio buttons instead of check boxes?

2561
2
04-27-2015 02:08 PM
ChadRicks
New Contributor III

Is there a way to customize the layer list widget to use radio buttons instead of check boxes?

0 Kudos
2 Replies
RickeyFight
MVP Regular Contributor

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'

0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Chad,

  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 

0 Kudos