diff --git a/examples/webgl-timemachine/csvFileLayer.js b/examples/webgl-timemachine/csvFileLayer.js index cde19e72..c31f5d8b 100644 --- a/examples/webgl-timemachine/csvFileLayer.js +++ b/examples/webgl-timemachine/csvFileLayer.js @@ -505,25 +505,7 @@ CsvFileLayer.prototype.loadLayers = function loadLayers(path) { $("#csvlayers_table").empty(); that.layers = []; - if (path.endsWith(".tsv")) { - $.ajax({ - url: path, - dataType: "text", - success: function(tsvdata) { - that.loadLayersFromTsv(tsvdata); - } - }); - } else { - // If necessary, expand docTab share path - if (path.indexOf("http") != 0) { - path = docTabToGoogleSheetUrl(path); - } - // Load csv layers from Google Sheets style URL - org.gigapan.Util.gdocToJSON(path, function(tsvdata) { - that.loadLayersFromTsv(tsvdata); - }); - } - + org.gigapan.Util.loadTsvData(path, that.loadLayersFromTsv, that); }; // Takes in UTC time, returns ISO string date format diff --git a/examples/webgl-timemachine/index.html b/examples/webgl-timemachine/index.html index 9350f2c9..28b04f1c 100644 --- a/examples/webgl-timemachine/index.html +++ b/examples/webgl-timemachine/index.html @@ -98,8 +98,6 @@