@@ -104,6 +104,7 @@ let newWidth = lineWidth;
104104let SiteOverride = ( SiteLat != null && SiteLon != null ) ;
105105let onJumpInput = null ;
106106let labelFill = null ;
107+ let labelFillEmerg = null ;
107108let blackFill = null ;
108109let labelStroke = null ;
109110let labelStrokeNarrow = null ;
@@ -773,6 +774,8 @@ function initialize() {
773774
774775 processQueryToggles ( ) ;
775776
777+ TAR . newUI && TAR . newUI . init ( ) ;
778+
776779 jQuery . when ( historyQueued ) . done ( push_history ) ;
777780
778781 if ( ! nHistoryItems ) {
@@ -935,9 +938,10 @@ function earlyInitPage() {
935938 tempTrailsTimeout = 45 ;
936939 SiteCirclesDistances = new Array ( 5 , 10 , 20 ) ;
937940 SiteCirclesLineDash = [ 5 , 5 ] ;
938- SiteCirclesColors = [ '#2b3436' , '#2b3436' , '#2b3436' ] ;
939- MapType_tar1090 = 'carto_light_all' ;
940- lineWidth = 4 ;
941+ SiteCirclesColors = [ '#446666' , '#446666' , '#446666' ] ;
942+ MapType_tar1090 = 'carto_dark_nolabels' ;
943+ lineWidth = 2 ;
944+ labelFamily = "'Consolas', 'Menlo', 'Lucida Console', monospace" ;
941945 g . enableLabels = true ;
942946 }
943947
@@ -2645,6 +2649,7 @@ function ol_map_init() {
26452649 } ) ;
26462650
26472651 OLMap . on ( [ 'click' , 'dblclick' ] , function ( evt ) {
2652+ if ( TAR . newUI && TAR . newUI . measureActive ) return ;
26482653 let trailHex = null ;
26492654 let trailTS = null ;
26502655 let planeHex = null ;
@@ -2794,6 +2799,7 @@ function showHideButtons() {
27942799 jQuery ( '#filterButton' ) . hide ( ) ;
27952800 jQuery ( '.ol-zoom' ) . hide ( ) ;
27962801 jQuery ( '.layer-switcher' ) . hide ( ) ;
2802+ jQuery ( '.ui2-chrome' ) . hide ( ) ;
27972803 } else {
27982804 jQuery ( '#header_top' ) . show ( ) ;
27992805 jQuery ( '#header_side' ) . show ( ) ;
@@ -2802,6 +2808,7 @@ function showHideButtons() {
28022808 jQuery ( '#filterButton' ) . show ( ) ;
28032809 jQuery ( '.ol-zoom' ) . show ( ) ;
28042810 jQuery ( '.layer-switcher' ) . show ( ) ;
2811+ jQuery ( '.ui2-chrome' ) . show ( ) ;
28052812 }
28062813}
28072814
@@ -3209,6 +3216,12 @@ function initMap() {
32093216 loStore [ 'noMLAT' ] = noMLAT ;
32103217 console . log ( 'noMLAT = ' + noMLAT ) ;
32113218 break ;
3219+ case "/" :
3220+ if ( TAR . newUI && TAR . newUI . active ) {
3221+ TAR . newUI . focusSearch ( ) ;
3222+ e . preventDefault ( ) ;
3223+ }
3224+ break ;
32123225 }
32133226 } , true ) ;
32143227
@@ -4968,6 +4981,7 @@ function buttonActive(id, state) {
49684981 jQuery ( id ) . addClass ( 'inActiveButton' ) ;
49694982 jQuery ( id ) . removeClass ( 'activeButton' ) ;
49704983 }
4984+ TAR . newUI && TAR . newUI . active && TAR . newUI . syncButton ( id , state ) ;
49714985}
49724986
49734987function toggleIsolation ( state , noRefresh ) {
@@ -5095,7 +5109,7 @@ function invertMap(evt){
50955109 }
50965110
50975111 altitudeChart . render = function ( ) {
5098- if ( toggles [ 'altitudeChart' ] . state ) {
5112+ if ( toggles [ 'altitudeChart' ] . state && ! atcStyle ) {
50995113 runAfterLoad ( loadLegend ) ;
51005114 } else {
51015115 jQuery ( '#altitude_chart' ) . hide ( ) ;
@@ -6446,6 +6460,11 @@ function updateAddressBar() {
64466460 string += ':' + replay . ts . getUTCMinutes ( ) . toString ( ) . padStart ( 2 , '0' ) ;
64476461 }
64486462
6463+ for ( const mode of [ 'atcStyle' , 'uk_advisory' ] ) {
6464+ if ( usp . has ( mode ) )
6465+ string += ( string ? '&' : '?' ) + mode ;
6466+ }
6467+
64496468 if ( SelPlanes . length > 0 ) {
64506469 string += ( string ? '&' : '?' ) ;
64516470 string += 'icao=' + SelPlanes . map ( ( s ) => encodeURIComponent ( s . icao ) ) . join ( ',' )
@@ -6926,11 +6945,12 @@ function setLineWidth() {
69266945 } ) ,
69276946 } ) ;
69286947
6929- labelFill = new ol . style . Fill ( { color : 'white' } ) ;
6948+ labelFill = new ol . style . Fill ( { color : atcStyle ? '#00FF00' : 'white' } ) ;
6949+ labelFillEmerg = new ol . style . Fill ( { color : '#FF3333' } ) ;
69306950 blackFill = new ol . style . Fill ( { color : 'black' } ) ;
69316951 labelStroke = new ol . style . Stroke ( { color : 'rgba(0,0,0,0.7' , width : 4 * globalScale } ) ;
69326952 labelStrokeNarrow = new ol . style . Stroke ( { color : 'rgba(0,0,0,0.7' , width : 2.5 * globalScale } ) ;
6933- bgFill = new ol . style . Stroke ( { color : 'rgba(0,0,0,0.25' } ) ;
6953+ bgFill = new ol . style . Stroke ( { color : atcStyle ? 'rgba(0,0,0,0)' : 'rgba(0,0,0,0.25' } ) ;
69346954}
69356955let lastCallLocationChange = 0 ;
69366956function onLocationChange ( position ) {
@@ -8065,10 +8085,11 @@ function initReplay(chunk, data) {
80658085}
80668086
80678087function setReplayTimeHint ( date ) {
8088+ jQuery ( '#replayTimeZone' ) . html ( '' ) ;
80688089 if ( true || utcTimesHistoric ) {
8069- jQuery ( "#replayDateHintLocal " ) . html ( TIMEZONE + " Date : " + lDateString ( date ) ) ;
8070- jQuery ( "#replayDateHint " ) . html ( " " + zDateString ( date ) ) ;
8071- jQuery ( "#replayTimeHint" ) . html ( "UTC:" + NBSP + zuluTime ( date ) + ' / ' + TIMEZONE + ":" + NBSP + localTime ( date ) ) ;
8090+ jQuery ( "#replayDateHint " ) . html ( "UTC: " + zDateString ( date ) + '<br/>' + TIMEZONE + ": " + lDateString ( date ) ) ;
8091+ // jQuery("#replayDateHintLocal ").html(TIMEZONE + " Date: " + lDateString (date));
8092+ jQuery ( "#replayTimeHint" ) . html ( "UTC:" + NBSP + zuluTime ( date ) + '<br/> ' + TIMEZONE + ":" + NBSP + localTime ( date ) ) ;
80728093 } else {
80738094 jQuery ( "#replayDateHintLocal" ) . html ( "" ) ;
80748095 jQuery ( "#replayDateHint" ) . html ( "Date: " + lDateString ( date ) ) ;
0 commit comments