Skip to content

Commit 2f8e765

Browse files
fix bug setting polyline zIndex on focus
1 parent f7024a2 commit 2f8e765

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/tracker.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,12 +571,10 @@ function focusVehicle(vcallsign, ignoreOpt) {
571571
var opacityFocused = 1;
572572
var opacityOther = 0.1;
573573

574-
if(vcallsign === null) opacityOther = opacityFocused;
575-
576574
for(var i in vehicles) {
577575
var vehicle = vehicles[i], j;
578576

579-
if(i == vcallsign) {
577+
if(i == vcallsign || vcallsign === null) {
580578
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({zIndex:Z_RANGE,strokeOpacity:opacityFocused * 0.6});
581579
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({zIndex:Z_RANGE,strokeOpacity:opacityFocused * 0.8});
582580
for(j in vehicle.polyline) vehicle.polyline[j].setOptions({zIndex:Z_PATH-j,strokeOpacity:opacityFocused});

0 commit comments

Comments
 (0)