Web map visualizing donor and government funded projects in Kenya
The map is based on donor and government funded projects in Kenya data set and built using Mapbox.js and Leaflet.js plugins.
Download as zip and unzip or clone to your computer
To get the data into GeoJSON format to be used to map the projects, much cleaner and easier to work with JSON structure of the data was required. I decided to download the data as CSV and convert to JSON. The JSON generated is in js/projects.json Then I used a python script to parse and generate the GeoJSON file from the projects json. The script ensures coordinates in the GeoJSON are floating point numbers since the ones provided are strings.
The map has a layerGroup in which other featureLayers are added or removed depending on what is to be displayed. I also tried loading the GeoJSON data when the map initially loads and reusing it to display the different layers a little faster.
- jQuery
- Mapbox + Leaflet js
- Browserify
- Bootstrap CSS
It'd be helpful if the data can be visualized as a heatmap of the status of projects so as to show which ones are stalling and which ones have been completed or are near completion in specific areas.