Changeset 587 in tmcsimulator for branches


Ignore:
Timestamp:
03/10/2020 09:32:13 AM (6 years ago)
Author:
jdalbey
Message:

add last_fetch_time.txt to dynamic data in realtime_VDS

Location:
branches/realtime_VDS
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/realtime_VDS/cptms/index.html

    r585 r587  
    149149    var kCCTVfile = "data_layers/cctv_locations_D12.gjson"; // CCTV locations 
    150150    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; 
    153153    var liveImage = "images/live.svg" 
    154154    var iconCMSactive = "images/icon_cms_active.png"; 
  • branches/realtime_VDS/cptms/js/vdsLayer.js

    r585 r587  
    173173    // if fetch is a success, display live img 
    174174    if (success) { 
    175         console.log(live); 
     175        //console.log(live); 
    176176        if (map.controls[google.maps.ControlPosition.TOP_RIGHT].getLength() > 0) 
    177177            map.controls[google.maps.ControlPosition.TOP_RIGHT].pop(); 
     
    180180    // if error, display sad smiley image 
    181181    else { 
    182         console.log(notLive); 
     182        //console.log(notLive); 
    183183        if (map.controls[google.maps.ControlPosition.TOP_RIGHT].getLength() > 0) 
    184184            map.controls[google.maps.ControlPosition.TOP_RIGHT].pop(); 
     
    191191{ 
    192192    var rawFile = new XMLHttpRequest(); 
    193     rawFile.open("GET", lastFetchFile, false); 
     193    rawFile.open("GET", lastFetchFile, true); 
    194194    rawFile.onreadystatechange = function () 
    195195    { 
Note: See TracChangeset for help on using the changeset viewer.