About
Sample page
Choropleth
Clusters
Dots
Bubbles
Dots (forced)
All (clusters)
All (v2)
All (widows v2)
Notes
Tiled map of UK (can change background)
plus county boundaries
Clustered pins (using leaflet library), zoom in on click
Red pins for Parliamentarian; Blue for Royalist
Can filter map to show just Parliamentarian / Royalist pins
On load zooms to bounds of pins (ie focuses on area of interest)
Don’t display pin if latlng is null or 0,0
Parish boundaries
1831Counties shapefile
Filter for GAZ_CNTY = YORKSHIRE, NORTH RIDING
Save selected features as new geojson file (1043 features; 3.6MB)
Dissolve features with same parish name and save as geojson (199 features; 2MB)
Simplify 20% on mapshaper.org and save as geojson (199 features; 450kb)
Save as topojson which reduces filesize, & thus load time, even further (199 features; 100kb)
Payments data
CSV from export listing all payments
Filter for person_location_county = yorkshire, north riding
Calculate allegiance based on payment date (<1660 = Parliamentarian; >1660 = Royalist)
Save CSV with fields as listed below
Export contains latlng but not name of this place
Field
Example
Note
id
1
row number; just for internal reference
allegiance
Parliamentarian
used for pin colours
person
Abraham Barringham of Marrick, North Riding of Yorkshire
used for pop-up
parish
MARRICK
used for pop-up
latlng
54.3794,-1.88327