mirror of
https://github.com/cjdenio/uta-trax-api.git
synced 2026-10-03 16:06:19 +00:00
banner when no vehicles
This commit is contained in:
2 files changed
+41
-9
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user