accomodate new heatmap format

This commit is contained in:
Matthias Wirth
2020-06-01 18:37:47 +02:00
parent 9f3486e8e1
commit 3e4f25eaf0

View File

@@ -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;