Don't use a heavy outline on aircraft when select-all is used.

This commit is contained in:
Oliver Jowett 2016-09-15 12:38:11 +01:00
parent 5445ce143c
commit 5b8a943cee
2 changed files with 2 additions and 2 deletions

View file

@ -305,7 +305,7 @@ PlaneObject.prototype.updateIcon = function() {
var opacity = (this.position_from_mlat ? 0.75 : 1.0); var opacity = (this.position_from_mlat ? 0.75 : 1.0);
var outline = (this.position_from_mlat ? OutlineMlatColor : OutlineADSBColor); var outline = (this.position_from_mlat ? OutlineMlatColor : OutlineADSBColor);
var baseMarker = getBaseMarker(this.category, this.icaotype, this.typeDescription, this.wtc); 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 rotation = (this.track === null ? 0 : this.track);
var transparentBorderWidth = (32 / baseMarker.scale).toFixed(1); var transparentBorderWidth = (32 / baseMarker.scale).toFixed(1);

View file

@ -1064,6 +1064,7 @@ function selectAllPlanes() {
} }
SelectedPlane = null; SelectedPlane = null;
SelectedAllPlanes = true;
for(var key in Planes) { for(var key in Planes) {
if (Planes[key].visible && !Planes[key].isFiltered()) { if (Planes[key].visible && !Planes[key].isFiltered()) {
@ -1072,7 +1073,6 @@ function selectAllPlanes() {
Planes[key].updateMarker(); Planes[key].updateMarker();
} }
} }
SelectedAllPlanes = true;
} }
refreshSelected(); refreshSelected();