Skip to content

Commit 27b1dba

Browse files
committed
Show spinner only during query
1 parent 793cf6b commit 27b1dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/assets/js/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,14 +532,14 @@ class ParquetProcessor {
532532
// eslint-disable-next-line sort-vars
533533
map = new Map(colorScale, spinner, processor);
534534

535-
spinner.show();
536535
colorScale.draw(map.map);
537536

538537
// Wait for the map to fully load before running a query
539538
map.map.on("load", async () => {
540539
// Load the previous map click if there was one
541540
const idParam = new URLSearchParams(window.location.search).get("id");
542541
if (idParam) {
542+
spinner.show();
543543
await processor.runQuery(map, idParam.substring(0, 2), idParam);
544544
}
545545

0 commit comments

Comments
 (0)