Skip to content

Commit

Permalink
Select layer group when clicking on title
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktSeidlSWM committed Jul 22, 2024
1 parent 0cd42c8 commit 2fb9ca3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/LayerTree.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ class LayerTree extends React.Component {
<div className={classnames(itemclasses)}>
<Icon className="layertree-item-expander" icon={expanderstate} onClick={() => this.groupExpandedToggled(layer, path, group.expanded)} />
<Icon className="layertree-item-checkbox" icon={checkboxstate} onClick={() => this.itemVisibilityToggled(layer, path, visibility)} />
<span className="layertree-item-title" title={group.title}>{group.title}</span>
<span className="layertree-item-title" onClick={() => this.itemVisibilityToggled(layer, path, visibility)} title={group.title}>{group.title}</span>
{LayerUtils.hasQueryableSublayers(group) && this.props.allowSelectIdentifyableLayers ? (<Icon className={"layertree-item-identifyable " + identifyableClassName} icon="info-sign" onClick={() => this.itemOmitQueryableToggled(layer, path, omitqueryable)} />) : null}
<span className="layertree-item-spacer" />
<Icon className={optMenuClasses} icon="cog" onClick={() => this.layerMenuToggled(group.uuid)}/>
Expand Down
1 change: 1 addition & 0 deletions plugins/style/LayerTree.css
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ img.layertree-item-legend-tooltip {
overflow: hidden;
text-overflow: ellipsis;
flex: 0 1 auto;
cursor: pointer;
}

#LayerTree div.layertree-item-noresults {
Expand Down

0 comments on commit 2fb9ca3

Please sign in to comment.