Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #1109 Moved the visibility icon to correct place #1149

Merged
merged 1 commit into from
Oct 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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