Skip to content

Commit

Permalink
Don't switch overview background layer if seprate overview layer is c…
Browse files Browse the repository at this point in the history
…onfigured
  • Loading branch information
manisandro committed Feb 13, 2025
1 parent 4d456b7 commit 1ea9993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/map/OverviewSupport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class OverviewMap extends React.Component {
overviewLayer = this.props.backgroundLayer;
}
this.setState({overviewLayer: overviewLayer});
} else if (this.props.backgroundLayer !== prevProps.backgroundLayer) {
} else if (this.props.backgroundLayer !== prevProps.backgroundLayer && !this.props.options.layer) {
this.setState({overviewLayer: this.props.backgroundLayer});
}
}
Expand Down

0 comments on commit 1ea9993

Please sign in to comment.