CMU-CREATE-Lab / esdr

Environmental Sensor Data Repository (ESDR)
Other
12 stars 9 forks source link

PM2.5 Visualization Broken due to Syntax Error #6

Closed sufyanAbbasi closed 6 years ago

sufyanAbbasi commented 6 years ago
ReferenceError: assignment to undeclared variable dataPocessQueue browse:2431:7 
getTiles https://esdr.cmucreatelab.org/browse/:2431:7
getGrapherTimeTiles https://esdr.cmucreatelab.org/browse/:2451:7
reColor https://esdr.cmucreatelab.org/browse/:2376:7
onclick https://esdr.cmucreatelab.org/browse/:1:1

It looks like dataProcessQueue is misspelled in the following function:

    //beginTime and endTime are in Epoch
    function getTiles(beginTime, endTime, multifeedName) {
      dataPocessQueue = [];
      var result = offsetLimitCalculator(beginTime, endTime);
      var level = result.level;
      var offset = result.offset;
      pauseTimeline();
      currentLevel = level;
      timelineReady = false;
      disablePlayButton();
      spinnerTransform();
      var url1 = "https://esdr.cmucreatelab.org/api/v1/multifeeds/" + multifeedName + "/tiles/" + level + "." + offset;
      var url2 = "https://esdr.cmucreatelab.org/api/v1/multifeeds/" + multifeedName + "/tiles/" + level + "." + (offset + 1);
      var url3 = "https://esdr.cmucreatelab.org/api/v1/multifeeds/" + multifeedName + "/tiles/" + level + "." + (offset - 1);
      getData(url1, multifeedName);
      getData(url2, multifeedName);
      getData(url3, multifeedName);
    }
chrisbartley commented 6 years ago

Fixed in commit 879d4e8c686c8295faa22e80c2f48f6ec44260f4. Thanks Sufyan!