Skip to content

Commit

Permalink
fix #1109 Moved the visibility icon to correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
saidaipparla authored and Gnafu committed Oct 14, 2016
1 parent 61f5eb4 commit f015287
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/client/components/TOC/DefaultLayer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ var DefaultLayer = React.createClass({
);
}
}
if (this.props.visibilityCheckType) {
tools.push(
<VisibilityCheck key="visibilitycheck"
checkType={this.props.visibilityCheckType}
propertiesChangeHandler={this.props.propertiesChangeHandler}
style={{"float": "right", cursor: "pointer", marginLeft: 0, marginRight: 0}}/>
);
}
if (this.props.activateLegendTool) {
tools.push(
<LayersTool key="toollegend"
Expand All @@ -102,7 +110,6 @@ var DefaultLayer = React.createClass({
let {children, propertiesChangeHandler, onToggle, ...other } = this.props;
return (
<Node className="toc-default-layer" sortableStyle={this.props.sortableStyle} style={this.props.style} type="layer" {...other}>
<VisibilityCheck checkType={this.props.visibilityCheckType} propertiesChangeHandler={this.props.propertiesChangeHandler}/>
<Title onClick={this.props.onToggle}/>
<InlineSpinner loading={this.props.node.loading}/>
<LayersTool key="loadingerror"
Expand Down

0 comments on commit f015287

Please sign in to comment.