Collapsible layer groups #66

This commit is contained in:
Lukas Martinelli
2017-01-11 18:18:47 +01:00
parent 26a865bb50
commit abceb457c9
3 changed files with 30 additions and 15 deletions
+2
View File
@@ -61,6 +61,7 @@ class LayerListItem extends React.Component {
layerType: React.PropTypes.string.isRequired,
isSelected: React.PropTypes.bool,
visibility: React.PropTypes.string,
className: React.PropTypes.string,
onLayerSelect: React.PropTypes.func.isRequired,
onLayerCopy: React.PropTypes.func,
@@ -93,6 +94,7 @@ class LayerListItem extends React.Component {
className={classnames({
"maputnik-layer-list-item": true,
"maputnik-layer-list-item-selected": this.props.isSelected,
[this.props.className]: true,
})}>
<LayerTypeDragHandle type={this.props.layerType} />
<span className="maputnik-layer-list-item-id">{this.props.layerId}</span>