banner when no vehicles

This commit is contained in:
cjdenio committed 2026-02-16 22:33:15 -07:00
1 parent 3c858e054b
commit cc3ec73be7
2 files changed
+41 -9

No files matched your search

+6
View File
@@ -95,6 +95,12 @@ protobuf.load("/schema.proto").then((root) => {
displayLastUpdated()
populateTotals(vehicles)
if (vehicles.length == 0) {
document.getElementById("banner").classList.remove("hidden")
map.invalidateSize()
} else {
document.getElementById("banner").classList.add("hidden")
}
// render vehicles on map
clearMap();