From 8258a52336c84b5bce8352334f5e356543df1b57 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Tue, 2 Jan 2024 20:22:53 +0100 Subject: [PATCH] Reverse page: new optional parameter -layer- --- src/components/SearchSectionReverse.svelte | 38 ++++++++++++++++++++++ src/pages/ReversePage.svelte | 6 +++- 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/src/components/SearchSectionReverse.svelte b/src/components/SearchSectionReverse.svelte index 46bb2b9..70174b6 100644 --- a/src/components/SearchSectionReverse.svelte +++ b/src/components/SearchSectionReverse.svelte @@ -7,6 +7,7 @@ export let lat = ''; export let lon = ''; export let zoom = ''; + export let api_request_params = {}; function gotoCoordinates(newlat, newlon, newzoom) { if (newlat === null || newlon === null) return; @@ -36,6 +37,9 @@ } } + function set_api_param(e) { + document.querySelector('input[name=' + e.target.dataset.apiParam + ']').value = e.target.value; + } @@ -81,11 +85,27 @@ {/each} +
+ +
+ Advanced options + +
+