diff --git a/html/planeObject.js b/html/planeObject.js
index 906be47..35b2e3e 100644
--- a/html/planeObject.js
+++ b/html/planeObject.js
@@ -750,6 +750,7 @@ PlaneObject.prototype.getMarkerColor = function(options) {
};
function altitudeColor(altitude) {
+ altitude = adjust_baro_alt(altitude);
let h, s, l;
if (altitude == null) {
diff --git a/html/script.js b/html/script.js
index b04a3ba..a379c94 100644
--- a/html/script.js
+++ b/html/script.js
@@ -3659,7 +3659,7 @@ function refreshFeatures() {
cols.altitude = {
text: 'Altitude',
sort: function () { sortBy('altitude',compareNumeric, function(x) { return (x.altitude == "ground" ? -100000 : x.altitude); }); },
- value: function(plane) { return format_altitude_brief(plane.altitude, plane.vert_rate, DisplayUnits); },
+ value: function(plane) { return format_altitude_brief(adjust_baro_alt(plane.altitude), plane.vert_rate, DisplayUnits); },
align: 'right',
header: function () { return 'Alt.' + NBSP + '(' + get_unit_label("altitude", DisplayUnits) + ')';},
};
@@ -8574,6 +8574,9 @@ function onAltimeterChange(e) {
remakeTrails();
refreshSelected();
+ refreshFeatures();
+ TAR.planeMan.redraw();
+ refresh();
}
// Using formula from: https://www.weather.gov/media/epz/wxcalc/pressureAltitude.pdf