Changeset 585 in tmcsimulator for branches/realtime_VDS/cptms/index.html


Ignore:
Timestamp:
03/08/2020 02:15:25 PM (6 years ago)
Author:
jdalbey
Message:

Add LIVE indicator

File:
1 edited

Legend:

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

    r584 r585  
    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; 
     153    var liveImage = "images/live.svg" 
    151154    var iconCMSactive = "images/icon_cms_active.png"; 
    152155    var iconCMSidle = "images/icon_cms_idle.png"; 
     
    200203        initVDSbutton(); 
    201204        initVDSicons(); 
     205        checkLastFetch(); 
    202206    } 
    203207 
     
    235239        var harTimer = setInterval(loadAllharMessages, 10000); 
    236240 
     241        var fetchTimer = setInterval(checkLastFetch, 10000); 
     242 
    237243        // Listen for zoom changes and move the vds dots so as to keep a nice 
    238244        // visual distance between them appropriate to the zoom factor 
Note: See TracChangeset for help on using the changeset viewer.