@@ -1038,8 +1038,7 @@ function addPosition(position) {
10381038 var point = new google . maps . LatLng ( position . gps_lat , position . gps_lon ) ;
10391039 var image_src = "" ;
10401040 var color_index = 0 ;
1041- if ( position . vehicle . search ( / ( c h a s e ) / i) != - 1 // whitelist
1042- && position . vehicle . search ( / i c a r u s / i) == - 1 ) { // blacklist
1041+ if ( position . vehicle . search ( / ( c h a s e ) / i) != - 1 ) {
10431042 vehicle_type = "car" ;
10441043 color_index = car_index ++ ;
10451044 var c = color_index % car_colors . length ;
@@ -1058,6 +1057,24 @@ function addPosition(position) {
10581057 optimized : false ,
10591058 title : position . vehicle
10601059 } ) ;
1060+ }
1061+ else if ( position . vehicle == "XX" ) {
1062+ vehicle_type = "xmark" ;
1063+ var image_src = host_url + markers_url + "balloon-xmark.png" ;
1064+
1065+ marker = new google . maps . Marker ( {
1066+ icon : {
1067+ url : image_src ,
1068+ size : new google . maps . Size ( 48 , 38 ) ,
1069+ scaledSize : new google . maps . Size ( 48 , 38 ) ,
1070+ anchor : new google . maps . Point ( 24 , 18 )
1071+ } ,
1072+ zIndex : Z_CAR ,
1073+ position : point ,
1074+ map : map ,
1075+ optimized : false ,
1076+ title : position . vehicle
1077+ } ) ;
10611078 } else {
10621079 vehicle_type = "balloon" ;
10631080 color_index = balloon_index ++ ;
@@ -1177,7 +1194,6 @@ function addPosition(position) {
11771194 ascent_rate : 0.0 ,
11781195 horizontal_rate : 0.0 ,
11791196 max_alt : parseFloat ( position . gps_alt ) ,
1180- path_enabled : vehicle_type == "balloon" && position . vehicle . toLowerCase ( ) . indexOf ( "iss" ) == - 1 ,
11811197 follow : false ,
11821198 color_index : c ,
11831199 prediction_traget : null ,
@@ -1759,6 +1775,8 @@ function updatePredictions(r) {
17591775
17601776 var i = 0 , ii = r . length ;
17611777 for ( ; i < ii ; i ++ ) {
1778+ if ( r [ i ] . vehicle == "XX" ) continue ;
1779+
17621780 var vehicle_index = $ . inArray ( r [ i ] . vehicle , vehicle_names ) ;
17631781 if ( vehicle_index != - 1 ) {
17641782 if ( vehicles [ vehicle_index ] . prediction && vehicles [ vehicle_index ] . prediction . time == r [ i ] . time ) {
0 commit comments