Skip to content

Commit 1b9ebb7

Browse files
make yellow and cyan paths easier to see
1 parent 2808813 commit 1b9ebb7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

js/tracker.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var car_index = 0;
2525
var car_colors = ["blue", "red", "green", "yellow"];
2626
var balloon_index = 0;
2727
var balloon_colors_name = ["red", "blue", "green", "yellow", "purple", "orange", "cyan"];
28-
var balloon_colors = ["#f00", "blue", "green", "#ff0", "#c700e6", "#ff8a0f", "#0fffca"];
28+
var balloon_colors = ["#f00", "blue", "green", "#FDFC30", "#c700e6", "#ff8a0f", "#0fffca"];
2929

3030
var map = null;
3131
var overlay = null;
@@ -553,7 +553,7 @@ function updateZoom() {
553553
function focusVehicle(vcallsign, ignoreOpt) {
554554
if(!offline.get('opt_hilight_vehicle') && ignoreOpt == undefined) return;
555555

556-
var opacityFocused = 0.8;
556+
var opacityFocused = 1;
557557
var opacityOther = 0.1;
558558

559559
if(vcallsign == null) opacityOther = opacityFocused;
@@ -562,14 +562,14 @@ function focusVehicle(vcallsign, ignoreOpt) {
562562
var vehicle = vehicles[i];
563563

564564
if(i == vcallsign) {
565-
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({strokeOpacity:opacityFocused});
566-
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({strokeOpacity:opacityFocused});
567-
for(var j in vehicle.polyline) vehicle.polyline[j].setOptions({strokeOpacity:opacityFocused});
565+
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({zIndex:2,strokeOpacity:opacityFocused * 0.6});
566+
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({zIndex:2,strokeOpacity:opacityFocused * 0.8});
567+
for(var j in vehicle.polyline) vehicle.polyline[j].setOptions({zIndex:2,strokeOpacity:opacityFocused});
568568
}
569569
else {
570-
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({strokeOpacity:opacityOther});
571-
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({strokeOpacity:opacityOther});
572-
for(var j in vehicle.polyline) vehicle.polyline[j].setOptions({strokeOpacity:opacityOther});
570+
if(vehicle.horizon_circle) vehicle.horizon_circle.setOptions({zIndex:1,strokeOpacity:opacityOther * 0.6});
571+
if(vehicle.subhorizon_circle) vehicle.subhorizon_circle.setOptions({zIndex:1,strokeOpacity:opacityOther * 0.8});
572+
for(var j in vehicle.polyline) vehicle.polyline[j].setOptions({zIndex:1,strokeOpacity:opacityOther});
573573
}
574574
}
575575
}
@@ -1235,8 +1235,8 @@ function addPosition(position) {
12351235
new google.maps.Polyline({
12361236
map: map,
12371237
zIndex: Z_PATH,
1238-
strokeColor: "#ffffff",
1239-
strokeOpacity: 0.8,
1238+
strokeColor: (['cyan','yellow'].indexOf(balloon_colors_name[c]) > -1 ? '#888888' : "#ffffff"),
1239+
strokeOpacity: 1,
12401240
strokeWeight: 5,
12411241
clickable: true,
12421242
draggable: false,
@@ -1246,7 +1246,7 @@ function addPosition(position) {
12461246
map: map,
12471247
zIndex: Z_PATH,
12481248
strokeColor: balloon_colors[c],
1249-
strokeOpacity: 0.8,
1249+
strokeOpacity: 1,
12501250
strokeWeight: 3,
12511251
clickable: true,
12521252
draggable: false,

0 commit comments

Comments
 (0)