Name: membermap
Owner: Open Knowledge Finland
Description: A map of the spatial distribution of OKFFI members
Created: 2015-04-29 07:05:01.0
Updated: 2016-05-05 21:17:43.0
Pushed: 2016-05-05 21:17:42.0
Homepage:
null
Size: 266
Language: CSS
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
membermap
Visualize the municipalities where the members of OKFFI reside.
Dependencies
Data
Publishing
Clone the repository
clone https://github.com/okffi/membermap
embermap
Prepare the municipal boundaries
- Download and extract the data into a specific directory.
Peek into
gml_to_geojson.sh
for the path.
- Run
./gml_to_geojson.sh
to transform the municipal boundaries from GML to GeoJSON and into the right spatial reference system.
- Copy the transformed file into
leaflet/app/data/
.
Prepare the member list
- Download the data into a specific file.
Peek into
member_csv_to_json.sh
for the filename.
- Run
./member_csv_to_json.sh
to transform the CSV file into a JSON file.
- Copy the transformed file into
leaflet/app/data/
.
Build and publish the map
- Run the following:
eaflet
install
r install
_modules/.bin/gulp
- Publish the contents of
dist/
.
The directory contains static files only.
Note
- Only members with the domicile set to a name of a Finnish municipality, in Finnish or in Swedish, are counted.
- This excludes members who live abroad.
- This excludes members who made a typo.
- This excludes members who put more specific location information into the field.
- This excludes members who did not report their domicile at all.
- The total count of all OKFFI members, visible on clicking any municipality, includes all members regardless of domicile.
- Humans and legal entities, e.g. other NGOs, are not separated in the calculations.
- The coloring algorithm is quite ad-hoc.
It is meant to visually separate where there are many, few or no members.
The colors are not meant for reading absolute numbers or proportions.
Todo
- Here are the members as a CSV.
- Use papaparse to parse the CSV in the browser.
"papaparse": "~4.1.0",
into bower.json