Generate standalone Leaflet dashboards for Swiss city opportunity analysis.
The generator reads city-specific GeoJSON files from data/ and writes an HTML
dashboard to maps/.
For a city slug such as uzwil, provide:
data/uzwil_employers.geojsondata/uzwil_polygons.geojsondata/uzwil_people_per_day.geojsonThe modal split panel reads shared values from data/MS.json:
{
"MIV": null,
"LV": null,
"OV": null
}
python3 scripts/generate_dashboard.py uzwil
This writes:
maps/uzwil_dashboard.html
You can customize the display name:
python3 scripts/generate_dashboard.py uzwil --city-name "Uzwil"
If data/<city>_people_per_day.geojson is missing, the script can extract the
embedded GeoJSON from maps/<city>_people_per_day.html and save it into data/.