mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 08:00:01 +00:00
Fixes for codemirror in sources modal
- Allows for max height - Override GeoJSON data when changing type
This commit is contained in:
@@ -116,6 +116,7 @@ class GeoJSONSourceJSONEditor extends React.Component {
|
||||
return <InputBlock label={"GeoJSON"} doc={latest.source_geojson.data.doc}>
|
||||
<JSONEditor
|
||||
layer={this.props.source.data}
|
||||
maxHeight={200}
|
||||
onChange={data => {
|
||||
this.props.onChange({
|
||||
...this.props.source,
|
||||
|
||||
Reference in New Issue
Block a user