This folder is a ready-to-deploy static site that shows the top 10% risk polygons on an OpenStreetMap basemap using Leaflet.
- Create a new public repository on GitHub (e.g.,
risk-polygons). - Upload the contents of this folder (keep the folder structure):
index.htmldata/top10pct_polygons.geojson
- In the repository: Settings → Pages
- Source: "Deploy from branch"
- Branch:
main(ormaster), Folder:/ (root)
- Wait a moment and open the URL:
https://<your-username>.github.io/<repo-name>/
You can also run a local server:
python -m http.server 8000
# then open http://localhost:8000/- The GeoJSON is in WGS84 (EPSG:4326), so it aligns with web basemaps.
- Customize polygon color/opacity or add labels by editing
index.html.