Changeset 587 in tmcsimulator for branches/realtime_VDS/cptms/js/vdsLayer.js


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.