From fef6dfbb5e2c87c46ae98d06b2c3c9166abd307a Mon Sep 17 00:00:00 2001 From: Matthias Wirth Date: Wed, 13 Nov 2019 13:27:49 +0100 Subject: [PATCH] don't highlight selected planes. i don't think highlighting the selected plane is necessary, you should see the track. Also no more different colored outline for MLAT. --- html/planeObject.js | 6 ++++-- html/script.js | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/html/planeObject.js b/html/planeObject.js index 4e90499..7b82538 100644 --- a/html/planeObject.js +++ b/html/planeObject.js @@ -608,8 +608,10 @@ PlaneObject.prototype.updateIcon = function() { var col = this.getMarkerColor(); //var opacity = 1.0; - var outline = (this.dataSource == "mlat" ? OutlineMlatColor : OutlineADSBColor); - var add_stroke = (this.selected && !SelectedAllPlanes && !onlySelected && !multiSelect) ? (' stroke="'+outline+'" stroke-width="1px"') : ''; + //var outline = (this.dataSource == "mlat" ? OutlineMlatColor : OutlineADSBColor); + //var add_stroke = (this.selected && !SelectedAllPlanes && !onlySelected && !multiSelect) ? (' stroke="'+outline+'" stroke-width="1px"') : ''; + const add_stroke = ''; + const outline = OutlineADSBColor; var baseMarkerKey = (this.category ? this.category : "A0") + "_" + this.typeDescription + "_" + this.wtc + "_" + this.icaoType; diff --git a/html/script.js b/html/script.js index 2a9b2c2..858efcd 100644 --- a/html/script.js +++ b/html/script.js @@ -2501,7 +2501,9 @@ function toggleTrackLabels() { function toggleMultiSelect() { if (multiSelect) { multiSelect = false; + var plane = SelectedPlane; deselectAllPlanes(); + selectPlaneByHex(plane.icao); } else { multiSelect = true; }