Fix for new sources definition.

This commit is contained in:
orangemug 2017-11-17 13:06:26 +00:00
parent a4fbe55012
commit 002e9c4647

View file

@ -134,7 +134,7 @@ export default class LayerEditor extends React.Component {
/> />
} }
{this.props.layer.type !== 'raster' && this.props.layer.type !== 'background' && <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].layers}
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)}
/> />