Skip to content

Commit

Permalink
Rename identify selection layer id
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 19, 2024
1 parent ab8d044 commit 4298bc5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/IdentifyViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class IdentifyViewer extends React.Component {
}
}
componentWillUnmount() {
this.props.removeLayer("identifyslection");
this.props.removeLayer("__identifyviewerhighlight");
}
updateResultTree = () => {
const layers = Object.keys(this.props.identifyResults);
Expand Down Expand Up @@ -254,12 +254,12 @@ class IdentifyViewer extends React.Component {
});
if (!isEmpty(results)) {
const layer = {
id: "identifyslection",
id: "__identifyviewerhighlight",
role: LayerRole.SELECTION
};
this.props.addLayerFeatures(layer, results, true);
} else {
this.props.removeLayer("identifyslection");
this.props.removeLayer("__identifyviewerhighlight");
}
};
getExpandedClass = (path, deflt) => {
Expand Down

0 comments on commit 4298bc5

Please sign in to comment.