X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c296bef87014f72b3f8aae878b9a23f6c08780a7..009e6267f7b7cf46be7958327d83e4cf261334b0:/src/components/SearchSection.svelte?ds=sidebyside

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 || ''}" />
         <input type="hidden"
                name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
+        <input type="hidden"
+               name="layer" value="{api_request_params.layer || ''}" />
       </div>
     </UrlSubmitForm>
   </div>
@@ -171,6 +173,8 @@
                name="limit" value="{api_request_params.limit || ''}" />
         <input type="hidden"
                name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
+        <input type="hidden"
+               name="layer" value="{api_request_params.layer || ''}" />
       </div>
     </UrlSubmitForm>
   </div>
@@ -244,6 +248,13 @@
              pattern="^[a-zA-Z]{'{2}'}(,[a-zA-Z]{'{2}'})*$"
              on:change={set_api_param}>
     </li>
+    <li>
+      <label for="option_layer">Layer</label>
+      <input id="option_layer" name="layer" placeholder="e.g. address,poi,railway,natural,manmade"
+        value="{api_request_params.layer || ''}"
+        data-api-param="layer" on:change={set_api_param}
+        class="form-control form-control-sm d-inline w-auto api-param-setting">
+    </li>
   </ul>
 </details>
 
