mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 07:37:45 +01:00
Hide source layer for raster source
This commit is contained in:
parent
7c9dcb3083
commit
118f0360d0
1 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,9 @@ class AddModal extends React.Component {
|
|||
|
||||
if(this.state.type !== 'background') {
|
||||
layer.source = this.state.source
|
||||
layer['source-layer'] = this.state['source-layer']
|
||||
if(this.state.type !== 'raster') {
|
||||
layer['source-layer'] = this.state['source-layer']
|
||||
}
|
||||
}
|
||||
|
||||
changedLayers.push(layer)
|
||||
|
@ -91,7 +93,7 @@ class AddModal extends React.Component {
|
|||
onChange={v => this.setState({ source: v })}
|
||||
/>
|
||||
}
|
||||
{this.state.type !== 'background' &&
|
||||
{this.state.type !== 'background' && this.state.type !== 'raster' &&
|
||||
<LayerSourceLayerBlock
|
||||
sourceLayerIds={this.props.sources[this.state.source] || []}
|
||||
value={this.state['source-layer']}
|
||||
|
|
Loading…
Reference in a new issue