drj11 / sheffmap

Election maps for sheffield
0 stars 0 forks source link

Sheffmap

Show a map of Sheffield using either wards (local election) as boundaries, or LSOA (for census data) as boundaries.

Example maps

Index of Multiple Deprivation

Local Election Turnout

Tree Canopy

To use this you must copy sheffmap.js E08000019.json and wards.geojson into a directory that will be served with your web application.

Your HTML should have a <DIV> with the class sheffmap, and that <DIV> should have the following data attributes:

The tree canopy example is one of the simplest to start with.

Notes and References

Sheffield City Council https://mapit.mysociety.org/area/2537.html

children (as JSON): https://mapit.mysociety.org/area/2537/children

Local Government areas are described by the file wards.json which is derived from the mapit data.

JSON files

[E08000019.json] GeoJSON file describing the LSOAs for the Metropolitan Borough of Sheffield. It is a GeoJSON FeatureCollection; each Feature has in its properties table:

[wards.json] is a table describing all the wards in Sheffield. The keys of this table are IDs used by the mapit project.