From ea40d1c5cf15d991bc3d2bc0a10a87f5505336f6 Mon Sep 17 00:00:00 2001 From: marc tobias Date: Mon, 4 Nov 2024 00:12:53 +0100 Subject: [PATCH 1/1] add advanced option -layer- to search.html --- src/components/SearchSection.svelte | 11 +++++++++++ src/pages/SearchPage.svelte | 1 + 2 files changed, 12 insertions(+) diff --git a/src/components/SearchSection.svelte b/src/components/SearchSection.svelte index 70e8df6..c1d3c18 100644 --- a/src/components/SearchSection.svelte +++ b/src/components/SearchSection.svelte @@ -119,6 +119,8 @@ name="limit" value="{api_request_params.limit || ''}" /> + @@ -171,6 +173,8 @@ name="limit" value="{api_request_params.limit || ''}" /> + @@ -244,6 +248,13 @@ pattern="^[a-zA-Z]{'{2}'}(,[a-zA-Z]{'{2}'})*$" on:change={set_api_param}> +
  • + + +
  • diff --git a/src/pages/SearchPage.svelte b/src/pages/SearchPage.svelte index 24fe1d8..fd4e7c5 100644 --- a/src/pages/SearchPage.svelte +++ b/src/pages/SearchPage.svelte @@ -28,6 +28,7 @@ dedupe: (!search_params.has('dedupe') || search_params.get('dedupe') === '1') ? 1 : 0, 'accept-language': search_params.get('accept-language'), countrycodes: search_params.get('countrycodes'), + layer: search_params.get('layer'), limit: search_params.get('limit'), polygon_threshold: search_params.get('polygon_threshold'), exclude_place_ids: search_params.get('exclude_place_ids'), -- 2.39.5