From 0c8bbbd7426eaa1fd9a0ac91c0bd8ae69824fc45 Mon Sep 17 00:00:00 2001 From: Joseph Hill Date: Fri, 13 Jan 2017 01:04:52 -0500 Subject: [PATCH] Update Parser.js --- Parser.js | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Parser.js b/Parser.js index 3633382..977af51 100644 --- a/Parser.js +++ b/Parser.js @@ -1,29 +1,23 @@ var data; function handleFile(evt) { - var file = evt.target.files[0]; - console.log(file); - Papa.parse(file, { header: true, dynamicTyping: true, - complete: function(results) - { + complete: function(results) { data = results; console.log(results.data); - updateMapCenter(data); addSlider(data); + updateMapCenter(data); addMarkers(data); } }); } // This method is only called when the initial CSV file is uploaded -function addMarkers(data) -{ - for (var i = 0; i