- Timestamp:
- 03/10/2020 09:32:13 AM (6 years ago)
- Location:
- branches/realtime_VDS
- Files:
-
- 1 added
- 2 edited
-
cptms/index.html (modified) (1 diff)
-
cptms/js/vdsLayer.js (modified) (3 diffs)
-
dynamicdata/last_fetch_time.txt (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/realtime_VDS/cptms/index.html
r585 r587 149 149 var kCCTVfile = "data_layers/cctv_locations_D12.gjson"; // CCTV locations 150 150 var kHARfile = "data_layers/har_locations_D12.gjson"; // CMS locations 151 var lastFetchFile = " last_fetch_time.txt";152 var fetchInterval = 15;151 var lastFetchFile = "../dynamicdata/last_fetch_time.txt"; 152 var fetchInterval = 60; 153 153 var liveImage = "images/live.svg" 154 154 var iconCMSactive = "images/icon_cms_active.png"; -
branches/realtime_VDS/cptms/js/vdsLayer.js
r585 r587 173 173 // if fetch is a success, display live img 174 174 if (success) { 175 console.log(live);175 //console.log(live); 176 176 if (map.controls[google.maps.ControlPosition.TOP_RIGHT].getLength() > 0) 177 177 map.controls[google.maps.ControlPosition.TOP_RIGHT].pop(); … … 180 180 // if error, display sad smiley image 181 181 else { 182 console.log(notLive);182 //console.log(notLive); 183 183 if (map.controls[google.maps.ControlPosition.TOP_RIGHT].getLength() > 0) 184 184 map.controls[google.maps.ControlPosition.TOP_RIGHT].pop(); … … 191 191 { 192 192 var rawFile = new XMLHttpRequest(); 193 rawFile.open("GET", lastFetchFile, false);193 rawFile.open("GET", lastFetchFile, true); 194 194 rawFile.onreadystatechange = function () 195 195 {
Note: See TracChangeset
for help on using the changeset viewer.
