mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 03:31:55 +01:00
Revert "Added checkbox for cluster attribute (#810)"
This reverts commit 393f4a38b9
.
This commit is contained in:
parent
e4d559f953
commit
52f949e152
2 changed files with 13 additions and 27 deletions
|
@ -128,7 +128,6 @@ class AddSource extends React.Component {
|
|||
}
|
||||
case 'geojson_json': return {
|
||||
type: 'geojson',
|
||||
cluster: source.cluster || false,
|
||||
data: {}
|
||||
}
|
||||
case 'tilejson_vector': return {
|
||||
|
|
|
@ -8,7 +8,6 @@ import FieldSelect from './FieldSelect'
|
|||
import FieldDynamicArray from './FieldDynamicArray'
|
||||
import FieldArray from './FieldArray'
|
||||
import FieldJson from './FieldJson'
|
||||
import FieldCheckbox from './FieldCheckbox'
|
||||
|
||||
|
||||
class TileJSONSourceEditor extends React.Component {
|
||||
|
@ -206,8 +205,7 @@ class GeoJSONSourceFieldJsonEditor extends React.Component {
|
|||
}
|
||||
|
||||
render() {
|
||||
return <div>
|
||||
<Block label={"GeoJSON"} fieldSpec={latest.source_geojson.data}>
|
||||
return <Block label={"GeoJSON"} fieldSpec={latest.source_geojson.data}>
|
||||
<FieldJson
|
||||
layer={this.props.source.data}
|
||||
maxHeight={200}
|
||||
|
@ -224,17 +222,6 @@ class GeoJSONSourceFieldJsonEditor extends React.Component {
|
|||
}}
|
||||
/>
|
||||
</Block>
|
||||
<FieldCheckbox
|
||||
label={'Cluster'}
|
||||
value={this.props.source.cluster}
|
||||
onChange={cluster => {
|
||||
this.props.onChange({
|
||||
...this.props.source,
|
||||
cluster: cluster,
|
||||
})
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue