Joining CSV data from Papa Parse with GeoJSON features in Leaflet
HTML
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css">
<script src="//rawgit.com/mapbox/leaflet-omnivore/master/leaflet-omnivore.min.js"></script>
<script src="//rawgit.com/mholt/PapaParse/master/papaparse.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js"></script>
CSS
html,
body,
#map {
height: 100%;
width: 100%;
padding: 0px;
margin: 0px;
}
JavaScript
d3.csv("https://gist.githubusercontent.com/espinielli/8d106a5cf9aa99734d43/raw/3d5c685083e72134b5737c442b651763010962a5/ifr.csv", function(data){
console.log(data);
});
console.log(data)