Fix up long decimal issue for min/max altitude values

This commit is contained in:
eric1tran 2020-12-14 23:24:45 +00:00
parent 3577cb4057
commit 8c325e04a0
1 changed files with 3 additions and 10 deletions

View File

@ -309,17 +309,10 @@ function initialize() {
'min': 0,
'max': 65000
},
step: 5,
step: 25,
format: {
// 'to' the formatted value. Receives a number.
to: function (value) {
return value;
},
// 'from' the formatted value.
// Receives a string, should return a number.
from: function (value) {
return value;
}
to: (v) => parseFloat(v).toFixed(0),
from: (v) => parseFloat(v).toFixed(0)
}
});