GithubHelp home page GithubHelp logo

charaaa / africawatermap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aptivate/africawatermap

0.0 1.0 0.0 1.13 MB

A map of Africa's access to water and sanitation

License: GNU General Public License v3.0

CSS 37.78% JavaScript 26.29% Python 11.77% Shell 4.34% HTML 19.82%

africawatermap's Introduction

###Africa Watermap

This interactive map commissioned by Wateraid for Africa Water week has been released for use by other organisations or individuals who may use it as a starting point for their own maps. The map itself is fully responsive and uses d3js for svg image generation in javascript. We would appreciate if you could remove all branding from your project before publishing it.

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.