@@ -577,9 +577,9 @@ function focusVehicle(vcallsign, ignoreOpt) {
577577 var vehicle = vehicles [ i ] , j ;
578578
579579 if ( i == vcallsign ) {
580- if ( vehicle . horizon_circle ) vehicle . horizon_circle . setOptions ( { zIndex :2 , strokeOpacity :opacityFocused * 0.6 } ) ;
581- if ( vehicle . subhorizon_circle ) vehicle . subhorizon_circle . setOptions ( { zIndex :2 , strokeOpacity :opacityFocused * 0.8 } ) ;
582- for ( j in vehicle . polyline ) vehicle . polyline [ j ] . setOptions ( { zIndex :2 , strokeOpacity :opacityFocused } ) ;
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 } ) ;
583583 }
584584 else {
585585 if ( vehicle . horizon_circle ) vehicle . horizon_circle . setOptions ( { zIndex :1 , strokeOpacity :opacityOther * 0.6 } ) ;
@@ -1323,19 +1323,19 @@ function addPosition(position) {
13231323 new google . maps . Polyline ( {
13241324 map : map ,
13251325 zIndex : Z_PATH ,
1326- strokeColor : ( [ 'cyan' , 'yellow' ] . indexOf ( balloon_colors_name [ c ] ) > - 1 ? '#888888' : "#ffffff" ) ,
1326+ strokeColor : balloon_colors [ c ] ,
13271327 strokeOpacity : 1 ,
1328- strokeWeight : 5 ,
1328+ strokeWeight : 3 ,
13291329 clickable : true ,
13301330 draggable : false ,
13311331 geodesic : true
13321332 } ) ,
13331333 new google . maps . Polyline ( {
13341334 map : map ,
1335- zIndex : Z_PATH ,
1336- strokeColor : balloon_colors [ c ] ,
1335+ zIndex : Z_PATH - 1 ,
1336+ strokeColor : ( [ 'cyan' , 'yellow' ] . indexOf ( balloon_colors_name [ c ] ) > - 1 ? '#888888' : "#ffffff" ) ,
13371337 strokeOpacity : 1 ,
1338- strokeWeight : 3 ,
1338+ strokeWeight : 5 ,
13391339 clickable : true ,
13401340 draggable : false ,
13411341 geodesic : true
0 commit comments