diff --git a/src/components/layers/LayerEditor.jsx b/src/components/layers/LayerEditor.jsx index 8a97f1d..27003f2 100644 --- a/src/components/layers/LayerEditor.jsx +++ b/src/components/layers/LayerEditor.jsx @@ -6,6 +6,8 @@ import PropertyGroup from '../fields/PropertyGroup' import LayerEditorGroup from './LayerEditorGroup' import LayerTypeBlock from './LayerTypeBlock' import LayerIdBlock from './LayerIdBlock' +import MinZoomBlock from './MinZoomBlock' +import MaxZoomBlock from './MaxZoomBlock' import LayerSourceBlock from './LayerSourceBlock' import LayerSourceLayerBlock from './LayerSourceLayerBlock' @@ -130,6 +132,14 @@ export default class LayerEditor extends React.Component { onChange={v => this.changeProperty(null, 'source-layer', v)} /> } + this.changeProperty(null, 'minzoom', v)} + /> + this.changeProperty(null, 'maxzoom', v)} + /> case 'filter': return
diff --git a/src/components/layers/MaxZoomBlock.jsx b/src/components/layers/MaxZoomBlock.jsx new file mode 100644 index 0000000..ecf2646 --- /dev/null +++ b/src/components/layers/MaxZoomBlock.jsx @@ -0,0 +1,26 @@ +import React from 'react' + +import GlSpec from 'mapbox-gl-style-spec/reference/latest.js' +import InputBlock from '../inputs/InputBlock' +import NumberInput from '../inputs/NumberInput' + +class MaxZoomBlock extends React.Component { + static propTypes = { + value: React.PropTypes.number.isRequired, + onChange: React.PropTypes.func.isRequired, + } + + render() { + return + + + } +} + +export default MaxZoomBlock diff --git a/src/components/layers/MinZoomBlock.jsx b/src/components/layers/MinZoomBlock.jsx new file mode 100644 index 0000000..9585d67 --- /dev/null +++ b/src/components/layers/MinZoomBlock.jsx @@ -0,0 +1,26 @@ +import React from 'react' + +import GlSpec from 'mapbox-gl-style-spec/reference/latest.js' +import InputBlock from '../inputs/InputBlock' +import NumberInput from '../inputs/NumberInput' + +class MinZoomBlock extends React.Component { + static propTypes = { + value: React.PropTypes.number.isRequired, + onChange: React.PropTypes.func.isRequired, + } + + render() { + return + + + } +} + +export default MinZoomBlock