From 5b8a943ceeab53a4c655d2598b3baab9e56d84ad Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Thu, 15 Sep 2016 12:38:11 +0100 Subject: [PATCH] Don't use a heavy outline on aircraft when select-all is used. --- public_html/planeObject.js | 2 +- public_html/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public_html/planeObject.js b/public_html/planeObject.js index a6ea20c..8121525 100644 --- a/public_html/planeObject.js +++ b/public_html/planeObject.js @@ -305,7 +305,7 @@ PlaneObject.prototype.updateIcon = function() { var opacity = (this.position_from_mlat ? 0.75 : 1.0); var outline = (this.position_from_mlat ? OutlineMlatColor : OutlineADSBColor); var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc); - var weight = ((this.selected ? 2 : 1) / baseMarker.scale).toFixed(1); + var weight = ((this.selected && !SelectedAllPlanes ? 2 : 1) / baseMarker.scale).toFixed(1); var rotation = (this.track === null ? 0 : this.track); var transparentBorderWidth = (32 / baseMarker.scale).toFixed(1); diff --git a/public_html/script.js b/public_html/script.js index 1261b31..ab13ec5 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -1064,6 +1064,7 @@ function selectAllPlanes() { } SelectedPlane = null; + SelectedAllPlanes = true; for(var key in Planes) { if (Planes[key].visible && !Planes[key].isFiltered()) { @@ -1072,7 +1073,6 @@ function selectAllPlanes() { Planes[key].updateMarker(); } } - SelectedAllPlanes = true; } refreshSelected();