Only show 'switch to layer' button if layer not already selected.

This commit is contained in:
orangemug
2020-02-17 13:24:14 +00:00
parent adea3d0f13
commit 39333953d7
2 changed files with 15 additions and 8 deletions

View File

@@ -732,6 +732,7 @@ export default class App extends React.Component {
/> : null
const bottomPanel = (this.state.errors.length + this.state.infos.length) > 0 ? <MessagePanel
currentLayer={selectedLayer}
onLayerSelect={this.onLayerSelect}
mapStyle={this.state.mapStyle}
errors={this.state.errors}