Added JSON linting back into <SourceTypeEditor/>

This commit is contained in:
orangemug
2020-04-20 11:07:08 +01:00
parent a0a91474de
commit 5ad74048bd
2 changed files with 29 additions and 0 deletions

View File

@@ -214,6 +214,11 @@ class GeoJSONSourceJSONEditor extends React.Component {
<JSONEditor
layer={this.props.source.data}
maxHeight={200}
mode={{
name: "javascript",
json: true
}}
lint={true}
onChange={data => {
this.props.onChange({
...this.props.source,