Skip to content

Commit

Permalink
Update Parser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
joh13010 committed Jan 9, 2017
1 parent 218319a commit 7a65b8e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Parser.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
var data;

function handleFile(evt)
{
function handleFile(evt) {

var file = evt.target.files[0];

Papa.parse(file,
{
Papa.parse(file, {
header: true,
dynamicTyping: true,
complete: function(results)
{
data = results;
console.log(results.data);
addSlider(data);
addMarkers(data);
}
});
}


function addMarkers(data)
{
for (var i = 0; i<data.data.length ; i++)
Expand All @@ -28,8 +29,8 @@ function addMarkers(data)
}
}


/* function showLatLang(lat, lon)
/* Troubleshooting Function
function showLatLang(lat, lon)
{
console.log("Latitude: " + lat + ". Longitude: " + lon);
} */
Expand Down

0 comments on commit 7a65b8e

Please sign in to comment.