mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-30 16:35:33 +01:00
Changed default of step 0.01 -> 1
This commit is contained in:
parent
5053058c32
commit
15cdfbc980
3 changed files with 1 additions and 3 deletions
|
@ -13,7 +13,7 @@ class NumberInput extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
rangeStep: 0.01
|
rangeStep: 1
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|
|
@ -17,7 +17,6 @@ class MaxZoomBlock extends React.Component {
|
||||||
>
|
>
|
||||||
<NumberInput
|
<NumberInput
|
||||||
allowRange={true}
|
allowRange={true}
|
||||||
rangeStep={1}
|
|
||||||
value={this.props.value}
|
value={this.props.value}
|
||||||
onChange={this.props.onChange}
|
onChange={this.props.onChange}
|
||||||
min={latest.layer.maxzoom.minimum}
|
min={latest.layer.maxzoom.minimum}
|
||||||
|
|
|
@ -17,7 +17,6 @@ class MinZoomBlock extends React.Component {
|
||||||
>
|
>
|
||||||
<NumberInput
|
<NumberInput
|
||||||
allowRange={true}
|
allowRange={true}
|
||||||
rangeStep={1}
|
|
||||||
value={this.props.value}
|
value={this.props.value}
|
||||||
onChange={this.props.onChange}
|
onChange={this.props.onChange}
|
||||||
min={latest.layer.minzoom.minimum}
|
min={latest.layer.minzoom.minimum}
|
||||||
|
|
Loading…
Reference in a new issue