From 76ab0a7ebef5a3e6a93889fa419e8df78f1ab943 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 30 Jul 2019 13:03:21 +0200 Subject: [PATCH 1/2] SkyView: Fix ground markers Add width and height to the svg xml description of the markers/symbols for ground vehicles. Fixes thouse markers/symbols being invisble. --- public_html/markers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public_html/markers.js b/public_html/markers.js index 3b79c1b..e9207fa 100755 --- a/public_html/markers.js +++ b/public_html/markers.js @@ -50,19 +50,19 @@ var shapes = { size: [19,16] }, 'ground_emergency': { - svg: 'emergency_dark', + svg: 'emergency_dark', size: [6, 15] }, 'ground_service': { - svg: 'service_dark', + svg: 'service_dark', size: [6, 15] }, 'ground_unknown': { - svg: 'unknown_dark', + svg: 'unknown_dark', size: [6, 15] }, 'ground_fixed': { - svg: 'fixed_dark', + svg: 'fixed_dark', size: [12, 12] }, 'unknown': { From f1cb09d0e3e6ed1f907279e52a59b58db7c0a2e8 Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Tue, 30 Jul 2019 13:30:03 +0200 Subject: [PATCH 2/2] SkyView: Fix trail color for planes that are now on ground When determining the color for a given altitude, don't check the current altitude if it's ground but the altitude passed as an argument to the function. Without this fix, when clicking an aircraft on ground, its entire trail is drawn in the color for ground. --- public_html/planeObject.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index 6e81ffd..39e3c4d 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -337,7 +337,7 @@ PlaneObject.prototype.getAltitudeColor = function(altitude) { h = ColorByAlt.unknown.h; s = ColorByAlt.unknown.s; l = ColorByAlt.unknown.l; - } else if (this.altitude === "ground") { + } else if (altitude === "ground") { h = ColorByAlt.ground.h; s = ColorByAlt.ground.s; l = ColorByAlt.ground.l;