mirror of
https://github.com/maputnik/editor.git
synced 2026-08-01 02:37:40 +00:00
No source blocks for background layer
This commit is contained in:
@@ -121,12 +121,13 @@ export default class LayerEditor extends React.Component {
|
|||||||
value={this.props.layer.type}
|
value={this.props.layer.type}
|
||||||
onChange={newType => this.props.onLayerChanged(changeType(this.props.layer, newType))}
|
onChange={newType => this.props.onLayerChanged(changeType(this.props.layer, newType))}
|
||||||
/>
|
/>
|
||||||
<LayerSourceBlock
|
{this.props.layer.type !== 'background' && <LayerSourceBlock
|
||||||
sourceIds={Object.keys(this.props.sources)}
|
sourceIds={Object.keys(this.props.sources)}
|
||||||
value={this.props.layer.source}
|
value={this.props.layer.source}
|
||||||
onChange={v => this.changeProperty(null, 'source', v)}
|
onChange={v => this.changeProperty(null, 'source', v)}
|
||||||
/>
|
/>
|
||||||
{this.props.layer.type !== 'raster' && <LayerSourceLayerBlock
|
}
|
||||||
|
{this.props.layer.type !== 'raster' && this.props.layer.type !== 'background' && <LayerSourceLayerBlock
|
||||||
sourceLayerIds={this.props.sources[this.props.layer.source]}
|
sourceLayerIds={this.props.sources[this.props.layer.source]}
|
||||||
value={this.props.layer['source-layer']}
|
value={this.props.layer['source-layer']}
|
||||||
onChange={v => this.changeProperty(null, 'source-layer', v)}
|
onChange={v => this.changeProperty(null, 'source-layer', v)}
|
||||||
|
|||||||
Reference in New Issue
Block a user