mirror of
https://github.com/maputnik/editor.git
synced 2025-12-23 06:30:01 +00:00
Hide source layer for raster source
This commit is contained in:
@@ -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']}
|
||||
|
||||
Reference in New Issue
Block a user