Skip to content

Commit d4637b4

Browse files
minimum max altitude of 2000m
This will make the altitude profile of grounded flights look like they are grounder, so they don't get confused with floaters. Beyond that, the height autoscales based on max altitude.
1 parent 89ca2e4 commit d4637b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/tracker.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,8 @@ function convert_time(text) {
585585
}
586586

587587
function drawAltitudeProfile(c1, c2, alt_list, alt_max) {
588+
alt_max = (alt_max < 2000) ? 2000 : alt_max;
589+
588590
var ctx1 = c1.getContext("2d");
589591
var ctx2 = c2.getContext("2d");
590592

0 commit comments

Comments
 (0)