mirror of
https://github.com/maputnik/editor.git
synced 2026-08-27 15:37:27 +00:00
Revert "Added checkbox for cluster attribute (#810)"
This reverts commit 393f4a38b9.
This commit is contained in:
@@ -128,7 +128,6 @@ class AddSource extends React.Component {
|
|||||||
}
|
}
|
||||||
case 'geojson_json': return {
|
case 'geojson_json': return {
|
||||||
type: 'geojson',
|
type: 'geojson',
|
||||||
cluster: source.cluster || false,
|
|
||||||
data: {}
|
data: {}
|
||||||
}
|
}
|
||||||
case 'tilejson_vector': return {
|
case 'tilejson_vector': return {
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ import FieldSelect from './FieldSelect'
|
|||||||
import FieldDynamicArray from './FieldDynamicArray'
|
import FieldDynamicArray from './FieldDynamicArray'
|
||||||
import FieldArray from './FieldArray'
|
import FieldArray from './FieldArray'
|
||||||
import FieldJson from './FieldJson'
|
import FieldJson from './FieldJson'
|
||||||
import FieldCheckbox from './FieldCheckbox'
|
|
||||||
|
|
||||||
|
|
||||||
class TileJSONSourceEditor extends React.Component {
|
class TileJSONSourceEditor extends React.Component {
|
||||||
@@ -81,7 +80,7 @@ class TileURLSourceEditor extends React.Component {
|
|||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
{this.props.children}
|
{this.props.children}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -206,35 +205,23 @@ class GeoJSONSourceFieldJsonEditor extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return <div>
|
return <Block label={"GeoJSON"} fieldSpec={latest.source_geojson.data}>
|
||||||
<Block label={"GeoJSON"} fieldSpec={latest.source_geojson.data}>
|
<FieldJson
|
||||||
<FieldJson
|
layer={this.props.source.data}
|
||||||
layer={this.props.source.data}
|
maxHeight={200}
|
||||||
maxHeight={200}
|
mode={{
|
||||||
mode={{
|
name: "javascript",
|
||||||
name: "javascript",
|
json: true
|
||||||
json: true
|
}}
|
||||||
}}
|
lint={true}
|
||||||
lint={true}
|
onChange={data => {
|
||||||
onChange={data => {
|
|
||||||
this.props.onChange({
|
|
||||||
...this.props.source,
|
|
||||||
data,
|
|
||||||
})
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Block>
|
|
||||||
<FieldCheckbox
|
|
||||||
label={'Cluster'}
|
|
||||||
value={this.props.source.cluster}
|
|
||||||
onChange={cluster => {
|
|
||||||
this.props.onChange({
|
this.props.onChange({
|
||||||
...this.props.source,
|
...this.props.source,
|
||||||
cluster: cluster,
|
data,
|
||||||
})
|
})
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</Block>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user