Skip to content

ArchBang85/indiasanitationmap

 
 

Repository files navigation

###India Sanitation Map

The map itself is fully responsive and uses d3js for svg image generation in javascript.

Local Development Server

Run the following commands in a terminal

cd path/to/d3js/
python -m SimpleHTTPServer 8008

And then you view the page at http://localhost:8008/

Guide to Project Directory Layout

The main code we're using is in the d3js/ directory.

The map data we're using, along with a script to generate the json files we need is in the mapdata/ directory.

An early implementation using the jvectormap library is in the jvectormap/ directory.

Running the map script

Only required for generating map data, not for running the web server

That requires the ogr2ogr and topojson commands. The ogr2ogr command can be installed by running:

sudo apt-get install gdal-bin

The topojson command can be installed by running

sudo npm install topojson -g

npm is part of node - on Ubuntu 14.04 you just install the nodejs package, or see this guide for older versions of Ubuntu

##Data flow diagram:

About

A map of India's access to Sanitation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.1%
  • CSS 23.2%
  • JavaScript 13.9%
  • Shell 3.8%