Visualize the municipalities where the members of OKFFI reside.
- List of OKFFI members
- Finnish municipality borders (or the complicated-to-download official source)
git clone https://github.com/okffi/membermap
cd membermap
- 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/
.
- 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/
.
- Run the following:
cd leaflet
npm install
bower install
node_modules/.bin/gulp
- Publish the contents of
dist/
. The directory contains static files only.
- 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.
- Here are the members as a CSV.
- Use papaparse to parse the CSV in the browser.
"papaparse": "~4.1.0",
into bower.json
- Use papaparse to parse the CSV in the browser.