diff --git a/html/script.js b/html/script.js index ad3bec4..156d654 100644 --- a/html/script.js +++ b/html/script.js @@ -4668,12 +4668,20 @@ function drawHeatmap() { if (!inView(pos, ext)) continue; - let alt = points[i + 3]; + let alt = points[i + 3] & 65535; + if (alt & 32768) + alt |= -65536; if (alt == -123) alt = 'ground'; else alt *= 25; + let gs = points[i + 3] >> 16; + if (gs == -1) + gs = null; + else + gs /= 10; + if (PlaneFilter.enabled && altFiltered(alt)) continue;