We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7024a2 commit 2f8e765Copy full SHA for 2f8e765
js/tracker.js
@@ -571,12 +571,10 @@ function focusVehicle(vcallsign, ignoreOpt) {
571
var opacityFocused = 1;
572
var opacityOther = 0.1;
573
574
- if(vcallsign === null) opacityOther = opacityFocused;
575
-
576
for(var i in vehicles) {
577
var vehicle = vehicles[i], j;
578
579
- if(i == vcallsign) {
+ if(i == vcallsign || vcallsign === null) {
580
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({zIndex:Z_RANGE,strokeOpacity:opacityFocused * 0.6});
581
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({zIndex:Z_RANGE,strokeOpacity:opacityFocused * 0.8});
582
for(j in vehicle.polyline) vehicle.polyline[j].setOptions({zIndex:Z_PATH-j,strokeOpacity:opacityFocused});
0 commit comments