Changeset 569 in tmcsimulator for trunk/webapps/GTEC/index.html
- Timestamp:
- 01/24/2020 01:12:52 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/webapps/GTEC/index.html (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/webapps/GTEC/index.html
r556 r569 5 5 <!-- map center button icon from http://icons8.com/. (Obligatory backlink, don't remove ) --> 6 6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> 7 <title> Visualizer</title>7 <title>Graphic Traffic Events Creator</title> 8 8 <link rel="icon" 9 9 type="image/png" … … 14 14 <body> 15 15 <!-- 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 18 37 --> 38 19 39 <!--The div element where the map appears. --> 20 40 <div id="mapdiv"></div> 21 41 <!-- The div element for the popup dialog. Best results when placed here. --> 22 </div>23 42 <!--The div elements where the buttons appear--> 24 43 <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> 25 51 <p id="time">00:00:00</p> 26 <button id=" beginning" >Beginning</button>52 <button id="start" >Beginning</button> 27 53 <button id="forward" >Next</button> 28 <button id="backward" >Back</button> 54 <button id="backward" >Back</button> --> 29 55 <script src="../common/js/fileutils.js"></script> 30 56 <script src="../common/js/revision_number.dat"></script> … … 72 98 var eventTimes = []; //array to hold times of each traffic event 73 99 eventTimes[0] = "00:00:00"; 74 var diff_arr = []; // 2d array containing difference in map state between each event100 var diff_arr = []; // 2d array containing 75 101 var eventIndex = -1; //to index into above array 76 102 … … 100 126 } 101 127 128 // Initialize the view/hide buttons 129 function initLayerButtons() 130 { 131 // initVDSbutton(); 132 //initControlButtons(); 133 initColorButtons(); 134 initVDSicons(); 135 } 136 102 137 // Initialize the map and load the points 103 138 function initMap() … … 114 149 }); 115 150 116 // setup the search box and center button 117 //initSearch(); 151 // setup the center button 118 152 initCenter(); 119 153 120 initializeVDSlayer(); // go load the map data 154 loadVDSlayer(); // go load the map data 155 // processVDS(); 121 156 122 initControlButtons(); 123 initVDSicons() 157 initLayerButtons(); // setup the show/hide layer buttons 158 159 updateVDSlayer(); 160 setTimeout(function() { 161 // buildDiff(); 162 updateVDSlayer(); 163 }, 3000); 124 164 125 165 // 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.
