Fix click interface on aggregate map going to cell detail

This commit is contained in:
Eli Ribble 2026-01-15 20:39:20 +00:00
parent 948f967a16
commit 0bd1a10753
No known key found for this signature in database
2 changed files with 21 additions and 21 deletions

View file

@ -57,6 +57,15 @@ body {
animation: fa-spin 2s linear infinite;
}
</style>
<script>
function onLoad() {
const map = document.querySelector("map-aggregate");
map.addEventListener("cell-click", (event) => {
window.location.href = '/cell/' + event.detail.cell;
});
}
window.addEventListener("load", onLoad);
</script>
{{end}}
{{define "content"}}
<div class="container dashboard-container">