Changeset 569 in tmcsimulator for trunk/webapps/GTEC/index.html


Ignore:
Timestamp:
01/24/2020 01:12:52 PM (6 years ago)
Author:
jdalbey
Message:

GTEC remove search box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/webapps/GTEC/index.html

    r556 r569  
    55<!-- map center button icon from http://icons8.com/.  (Obligatory backlink, don't remove ) --> 
    66  <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> 
    7     <title>Visualizer </title>  
     7    <title>Graphic Traffic Events Creator</title>  
    88<link rel="icon"  
    99      type="image/png"  
     
    1414  <body> 
    1515    <!--  
    16          Visualizer created from CPTMS 
    17          @author tkumar and jdalbey 2019.11.23 
     16         Version 6.5 Adjust cms dialog dimensions for Chrome. 
     17             Version 6.4 Remove fullscreen control. (Use Browser F11 instead). 
     18         Version 6.3 decomposed into modules for each layer 
     19         Version 6.2 puts cctv and cms and vds in separate data layers.    
     20         Version 6.1 Puts cms messages in json formatted file.  Polls for updates. 
     21         Version 6.0 Adds speed-dependent images to infowindow for cctv icons 
     22         Version 5.8 Adds an infowindow with a static image for all cctv icons 
     23         Version 5.7 integrates CCTV icons and button (but empty click handler) 
     24         Version 5.6 integrates CMS features 
     25         Version 5.5 renames title to CPTMS, loads static data on startup and dynamic data 
     26         every ten seconds.   
     27         Version 5.4 adds Search box and Center button 
     28         Version 5.3 fixed dot color update defect, increased refresh rate to 10 sec. 
     29         Version 5.2 places red dots overlapping yellow dots. 
     30         Version 5.1 removes the map and street view buttons and the H3 tag. 
     31         Version 5 uses precomputed perpendicular vector in dot adjustment function 
     32         Version 4 Adjust the spacing between dots when the map is zoomed. 
     33         Version 3 does loadGeoJson only once, and subsequently does an ajax load 
     34         of the highways file, and selectively updates only those placePins whose 
     35         color has changed.  
     36         @author jdalbey  2019.2.17 
    1837    --> 
     38 
    1939    <!--The div element where the map appears. --> 
    2040    <div id="mapdiv"></div> 
    2141    <!-- The div element for the popup dialog. Best results when placed here. --> 
    22     </div> 
    2342   <!--The div elements where the buttons appear--> 
    2443    <div id="ctrButton"><img width="30" src="images/btn_mapcenter.png"></div> 
     44    <button id="redButton">Red</button> 
     45    <button id="greenButton">Green</button> 
     46    <button id="yellowButton">Yellow</button> 
     47    <!-- <button id="harButton" class="unstyled-button"><img id="harBtnImg" src="images/btnReady_HAR.png"></button> 
     48    <button id="cctvButton" class="unstyled-button"><img id="cctvBtnImg" src="images/btnReady_CCTV.png"></button> 
     49    <button id="cmsButton" class="unstyled-button"><img id="cmsBtnImg" src="images/btnReady_CMS.png"></button>--> 
     50    <!--<button id="vdsButton" class="unstyled-button"><img id="vdsBtnImg" src="images/btnDepressed_VDS.png"></button> 
    2551    <p id="time">00:00:00</p> 
    26     <button id="beginning" >Beginning</button> 
     52    <button id="start" >Beginning</button> 
    2753    <button id="forward" >Next</button> 
    28         <button id="backward" >Back</button> 
     54        <button id="backward" >Back</button> --> 
    2955    <script  src="../common/js/fileutils.js"></script> 
    3056    <script  src="../common/js/revision_number.dat"></script> 
     
    7298    var eventTimes = []; //array to hold times of each traffic event 
    7399    eventTimes[0] = "00:00:00"; 
    74     var diff_arr = []; // 2d array containing difference in map state between each event 
     100    var diff_arr = []; // 2d array containing  
    75101    var eventIndex = -1; //to index into above array 
    76102 
     
    100126    } 
    101127 
     128    // Initialize the view/hide buttons  
     129    function initLayerButtons() 
     130    { 
     131       // initVDSbutton(); 
     132        //initControlButtons(); 
     133        initColorButtons(); 
     134        initVDSicons(); 
     135    } 
     136 
    102137    // Initialize the map and load the points 
    103138    function initMap() 
     
    114149        }); 
    115150 
    116         // setup the search box and center button 
    117         //initSearch(); 
     151        // setup the center button 
    118152        initCenter(); 
    119153         
    120         initializeVDSlayer(); // go load the map data 
     154        loadVDSlayer(); // go load the map data 
     155       // processVDS(); 
    121156 
    122         initControlButtons(); 
    123         initVDSicons() 
     157        initLayerButtons(); // setup the show/hide layer buttons 
     158 
     159        updateVDSlayer(); 
     160        setTimeout(function() { 
     161         //   buildDiff(); 
     162            updateVDSlayer(); 
     163        }, 3000); 
    124164 
    125165        // Listen for zoom changes and move the vds dots so as to keep a nice 
Note: See TracChangeset for help on using the changeset viewer.