aboutsummaryrefslogtreecommitdiff
path: root/src/static
diff options
context:
space:
mode:
Diffstat (limited to 'src/static')
-rw-r--r--src/static/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/main.js b/src/static/main.js
index b0e1431..ecaf650 100644
--- a/src/static/main.js
+++ b/src/static/main.js
@@ -36,6 +36,10 @@ function runQueryAfterLoad() {
if (!SubmitButton.disabled) { // Disallow double queries
SubmitButton.disabled = true;
LoadingIndicator.hidden = false;
+ const url = new URL(location);
+ url.searchParams.set("Category", CategoryField.value);
+ history.pushState({}, "", url);
+
markers.clearLayers();
polygons.clearLayers();