@@ -52,7 +52,8 @@ const LayerTree = React.createClass({
5252 updateSettings : React . PropTypes . func ,
5353 updateNode : React . PropTypes . func ,
5454 activateLegendTool : React . PropTypes . bool ,
55- activateSettingsTool : React . PropTypes . bool
55+ activateSettingsTool : React . PropTypes . bool ,
56+ visibilityCheckType : React . PropTypes . string
5657 } ,
5758 getDefaultProps ( ) {
5859 return {
@@ -63,7 +64,8 @@ const LayerTree = React.createClass({
6364 onSettings : ( ) => { } ,
6465 updateNode : ( ) => { } ,
6566 activateLegendTool : true ,
66- activateSettingsTool : true
67+ activateSettingsTool : true ,
68+ visibilityCheckType : "checkbox"
6769 } ;
6870 } ,
6971 getNoBackgroundLayers ( group ) {
@@ -82,7 +84,9 @@ const LayerTree = React.createClass({
8284 propertiesChangeHandler = { this . props . groupPropertiesChangeHandler }
8385 onToggle = { this . props . onToggleGroup }
8486 style = { this . props . groupStyle }
85- groupVisibilityCheckbox = { true } >
87+ groupVisibilityCheckbox = { true }
88+ visibilityCheckType = { this . props . visibilityCheckType }
89+ >
8690 < DefaultLayer
8791 onToggle = { this . props . onToggleLayer }
8892 onSettings = { this . props . onSettings }
@@ -91,6 +95,7 @@ const LayerTree = React.createClass({
9195 settings = { this . props . settings }
9296 updateSettings = { this . props . updateSettings }
9397 updateNode = { this . props . updateNode }
98+ visibilityCheckType = { this . props . visibilityCheckType }
9499 activateLegendTool = { this . props . activateLegendTool }
95100 activateSettingsTool = { this . props . activateSettingsTool }
96101 opacityText = { < Message msgId = "opacity" /> }
0 commit comments