@@ -773,6 +773,8 @@ function initialize() {
773773
774774 processQueryToggles ( ) ;
775775
776+ TAR . newUI && TAR . newUI . init ( ) ;
777+
776778 jQuery . when ( historyQueued ) . done ( push_history ) ;
777779
778780 if ( ! nHistoryItems ) {
@@ -2645,6 +2647,7 @@ function ol_map_init() {
26452647 } ) ;
26462648
26472649 OLMap . on ( [ 'click' , 'dblclick' ] , function ( evt ) {
2650+ if ( TAR . newUI && TAR . newUI . measureActive ) return ;
26482651 let trailHex = null ;
26492652 let trailTS = null ;
26502653 let planeHex = null ;
@@ -2794,6 +2797,7 @@ function showHideButtons() {
27942797 jQuery ( '#filterButton' ) . hide ( ) ;
27952798 jQuery ( '.ol-zoom' ) . hide ( ) ;
27962799 jQuery ( '.layer-switcher' ) . hide ( ) ;
2800+ jQuery ( '.ui2-chrome' ) . hide ( ) ;
27972801 } else {
27982802 jQuery ( '#header_top' ) . show ( ) ;
27992803 jQuery ( '#header_side' ) . show ( ) ;
@@ -2802,6 +2806,7 @@ function showHideButtons() {
28022806 jQuery ( '#filterButton' ) . show ( ) ;
28032807 jQuery ( '.ol-zoom' ) . show ( ) ;
28042808 jQuery ( '.layer-switcher' ) . show ( ) ;
2809+ jQuery ( '.ui2-chrome' ) . show ( ) ;
28052810 }
28062811}
28072812
@@ -3209,6 +3214,12 @@ function initMap() {
32093214 loStore [ 'noMLAT' ] = noMLAT ;
32103215 console . log ( 'noMLAT = ' + noMLAT ) ;
32113216 break ;
3217+ case "/" :
3218+ if ( TAR . newUI && TAR . newUI . active ) {
3219+ TAR . newUI . focusSearch ( ) ;
3220+ e . preventDefault ( ) ;
3221+ }
3222+ break ;
32123223 }
32133224 } , true ) ;
32143225
@@ -4968,6 +4979,7 @@ function buttonActive(id, state) {
49684979 jQuery ( id ) . addClass ( 'inActiveButton' ) ;
49694980 jQuery ( id ) . removeClass ( 'activeButton' ) ;
49704981 }
4982+ TAR . newUI && TAR . newUI . active && TAR . newUI . syncButton ( id , state ) ;
49714983}
49724984
49734985function toggleIsolation ( state , noRefresh ) {
@@ -8065,10 +8077,11 @@ function initReplay(chunk, data) {
80658077}
80668078
80678079function setReplayTimeHint ( date ) {
8080+ jQuery ( '#replayTimeZone' ) . html ( '' ) ;
80688081 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 ) ) ;
8082+ jQuery ( "#replayDateHint " ) . html ( "UTC: " + zDateString ( date ) + '<br/>' + TIMEZONE + ": " + lDateString ( date ) ) ;
8083+ // jQuery("#replayDateHintLocal ").html(TIMEZONE + " Date: " + lDateString (date));
8084+ jQuery ( "#replayTimeHint" ) . html ( "UTC:" + NBSP + zuluTime ( date ) + '<br/> ' + TIMEZONE + ":" + NBSP + localTime ( date ) ) ;
80728085 } else {
80738086 jQuery ( "#replayDateHintLocal" ) . html ( "" ) ;
80748087 jQuery ( "#replayDateHint" ) . html ( "Date: " + lDateString ( date ) ) ;
0 commit comments