Add raster layout group

This commit is contained in:
Lukas Martinelli 2017-01-08 19:58:19 +01:00
parent 118f0360d0
commit e9daee4470
2 changed files with 31 additions and 1 deletions

View file

@ -112,11 +112,12 @@ export default class LayerEditor extends React.Component {
value={this.props.layer.source} value={this.props.layer.source}
onChange={v => this.changeProperty(null, 'source', v)} onChange={v => this.changeProperty(null, 'source', v)}
/> />
<LayerSourceLayerBlock {this.props.layer.type !== 'raster' && <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)}
/> />
}
{this.props.layer.filter && {this.props.layer.filter &&
<div style={input.property}> <div style={input.property}>
<FilterEditor <FilterEditor

View file

@ -247,5 +247,34 @@
"type": "jsoneditor" "type": "jsoneditor"
} }
] ]
},
"raster": {
"groups": [
{
"title": "Settings",
"type": "settings"
},
{
"title": "Source",
"type": "source"
},
{
"title": "Basic",
"type": "properties",
"fields": [
"raster-opacity",
"raster-hue-rotate",
"raster-brightness-min",
"raster-brightness-max",
"raster-saturation",
"raster-contrast",
"raster-fade-duration"
]
},
{
"title": "JSON",
"type": "jsoneditor"
}
]
} }
} }