Skip to content

PitchInteractiveInc/tilegrams

Repository files navigation

Tilegrams

A “tilegram” is a map made of tiles where regions are sized proportionally to a dataset.

You can read more in our blog post or the manual.

Development

Setup

After cloning the repository, run:

npm i

Running

Run

npm start

Then access http://localhost:8080/.

Deploying

To generate deployable assets, run:

npm run build

They will be written to dist/.

Dependencies

JavaScript is written in ES2015 using Babel. Styles are written in SASS. All assets are preprocessed with webpack.

The Maker also depends on a pre-release npm version of topogram (formerly cartogram.js) as seen in this PR.

Data Sources

US Population Data

Electoral Votes Data

GDP Data

France Population Data

Base Map Sources

US states map: Natural Earth Data

Germany constituency map: Bundeswahlleiter.de © Der Bundeswahlleiter, Statistisches Bundesamt, Wiesbaden 2016, Wahlkreiskarte für die Wahl zum 19. Deutschen Bundestag Basis of the geological information © Geobasis-DE / BKG (2016)

License

This software is distributed under the ISC license.