From: marc tobias Date: Sun, 3 Nov 2024 23:12:53 +0000 (+0100) Subject: add advanced option -layer- to search.html X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/ea40d1c5cf15d991bc3d2bc0a10a87f5505336f6?hp=52fe1d9f23298721943804931f2df9e42d1a09cc add advanced option -layer- to search.html --- 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'),