Fix up long decimal issue for min/max altitude values
This commit is contained in:
parent
3577cb4057
commit
8c325e04a0
|
|
@ -309,17 +309,10 @@ function initialize() {
|
||||||
'min': 0,
|
'min': 0,
|
||||||
'max': 65000
|
'max': 65000
|
||||||
},
|
},
|
||||||
step: 5,
|
step: 25,
|
||||||
format: {
|
format: {
|
||||||
// 'to' the formatted value. Receives a number.
|
to: (v) => parseFloat(v).toFixed(0),
|
||||||
to: function (value) {
|
from: (v) => parseFloat(v).toFixed(0)
|
||||||
return value;
|
|
||||||
},
|
|
||||||
// 'from' the formatted value.
|
|
||||||
// Receives a string, should return a number.
|
|
||||||
from: function (value) {
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue