import ResultsList from '../components/ResultsList.svelte';
import Map from '../components/Map.svelte';
let api_request_params;
let bStructuredSearch;
import ResultsList from '../components/ResultsList.svelte';
import Map from '../components/Map.svelte';
let api_request_params;
let bStructuredSearch;
state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
state: search_params.get('state'),
country: search_params.get('country'),
postalcode: search_params.get('postalcode'),
viewbox: search_params.get('viewbox'),
bounded: search_params.get('bounded'),
dedupe: search_params.get('dedupe'),
viewbox: search_params.get('viewbox'),
bounded: search_params.get('bounded'),
dedupe: search_params.get('dedupe'),
- document.querySelector('input[name=q]').focus();
+ if (anyStructuredFieldsSet) {
+ document.querySelector(".nav-tabs a[href='#structured']").click();
+ document.querySelector('input[name=street]').focus();
+ } else {
+ document.querySelector('input[name=q]').focus();
+ }