mirror of
https://github.com/maputnik/editor.git
synced 2026-06-16 20:27:25 +00:00
Add raster layout group
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user