diff --git a/koki/koryo.js b/koki/koryo.js index 90328ca..c27c589 100644 --- a/koki/koryo.js +++ b/koki/koryo.js @@ -26,33 +26,18 @@ function putValues(row) { for (let key of Object.keys(row)) { - if (key == "lat"){ - let lat = row[key]; - }if(key == "lng"){ - let lng = row[key]; - } } } function init(){ fetch(csvfile). - then((resp) =>{ - if (resp.op) return resp.text(); - }).then((txt)=>{ - point = new CSV(txt, {header:true}).parse(); + then((resp) => { + if (resp.ok) return resp.text(); + }).then((txt) => { + point = new CSV(txt,{header: true}).parse(); putValues(point[pos]); });; - for(var x=1;x