Add awesome JSON editor!

This commit is contained in:
Lukas Martinelli
2016-12-22 15:27:58 +01:00
parent fed8c6b0ea
commit 3cc9f45085
5 changed files with 129 additions and 0 deletions
+5
View File
@@ -1,5 +1,6 @@
import React from 'react'
import JSONEditor from './JSONEditor'
import SourceEditor from './SourceEditor'
import FilterEditor from '../filter/FilterEditor'
import PropertyGroup from '../fields/PropertyGroup'
@@ -126,6 +127,10 @@ export default class LayerEditor extends React.Component {
groupFields={fields}
onChange={this.onPropertyChange.bind(this)}
/>
case 'jsoneditor': return <JSONEditor
layer={this.props.layer}
onChange={this.props.onLayerChanged}
/>
default: return null
}
}