import ResultsList from '../components/ResultsList.svelte';
import Map from '../components/Map.svelte';
import ResultsList from '../components/ResultsList.svelte';
import Map from '../components/Map.svelte';
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();
+ }