placeholder="Search"
value="{api_request_params.q || ''}" />
- <div class="form-group search-button-group">
- <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
- <input type="hidden" name="viewbox" value="{sViewBox || ''}" />
- <input type="hidden" name="dedupe" value="{!api_request_params.dedupe ? '' : 1}" />
- <input type="hidden" name="bounded" value="{api_request_params.bounded ? 1 : ''}" />
- <input type="hidden" name="accept-language" value="{api_request_params['accept-language'] || ''}" />
- <input type="hidden" name="countrycodes" value="{api_request_params.countrycodes || ''}" />
- <input type="hidden" name="limit" value="{api_request_params.limit || ''}" />
- <input type="hidden" name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
- </div>
+ <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
+ <input type="hidden" name="viewbox" value="{sViewBox || ''}" />
+ <input type="hidden" name="dedupe" value="{!api_request_params.dedupe ? '' : 1}" />
+ <input type="hidden" name="bounded" value="{api_request_params.bounded ? 1 : ''}" />
+ <input type="hidden" name="accept-language" value="{api_request_params['accept-language'] || ''}" />
+ <input type="hidden" name="countrycodes" value="{api_request_params.countrycodes || ''}" />
+ <input type="hidden" name="limit" value="{api_request_params.limit || ''}" />
+ <input type="hidden" name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
</UrlSubmitForm>
</div>
<div class="tab-pane" class:active={bStructuredSearch} id="structured" role="tabpanel">
placeholder="Postal Code"
value="{api_request_params.postalcode || ''}" />
- <div class="form-group search-button-group">
- <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
- <input type="hidden" name="viewbox" value="{sViewBox || ''}" />
- <input type="hidden" name="dedupe" value="{!api_request_params.dedupe ? '' : 1}" />
- <input type="hidden" name="bounded" value="{api_request_params.bounded ? 1 : ''}" />
- <input type="hidden" name="accept-language" value="{api_request_params['accept-language'] || ''}" />
- <input type="hidden" name="countrycodes" value="{api_request_params.countrycodes || ''}" />
- <input type="hidden" name="limit" value="{api_request_params.limit || ''}" />
- <input type="hidden" name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
- </div>
+ <button type="submit" class="btn btn-primary btn-sm">Search</button>
+ <input type="hidden" name="viewbox" value="{sViewBox || ''}" />
+ <input type="hidden" name="dedupe" value="{!api_request_params.dedupe ? '' : 1}" />
+ <input type="hidden" name="bounded" value="{api_request_params.bounded ? 1 : ''}" />
+ <input type="hidden" name="accept-language" value="{api_request_params['accept-language'] || ''}" />
+ <input type="hidden" name="countrycodes" value="{api_request_params.countrycodes || ''}" />
+ <input type="hidden" name="limit" value="{api_request_params.limit || ''}" />
+ <input type="hidden" name="polygon_threshold" value="{api_request_params.polygon_threshold || ''}" />
</UrlSubmitForm>
</div>
</div> <!-- /tab-content -->
.nav-link {
padding: 0.1rem 1rem;
}
- .tab-content {
- display: flex;
- align-items: baseline
- }
#q {
- min-width: 500px;
- }
- @media (max-width: 850px) {
- #q {
- min-width: 400px;
- }
- }
- @media (max-width: 768px) {
- .search-button-group {
- display: inline;
- }
+ width: 500px;
+ max-width: 100%;
}
#searchAdvancedOptions ul {
<form on:submit|preventDefault={handleFormSubmit} class="form-inline" action="details.html">
<input type="edit"
- class="form-control form-control-sm"
+ class="form-control form-control-sm mr-1"
pattern="^[NWR]?[0-9]+$|.*openstreetmap.*"
value="{api_request_params.osmtype || ''}{api_request_params.osmid || ''}{api_request_params.place_id || ''}" />
- <input type="submit" class="btn btn-primary btn-sm" value="Show" />
+ <button type="submit" class="btn btn-primary btn-sm">Show</button>
</form>
<small class="form-text text-muted">
OSM type+id (<em>N123</em>, <em>W123</em>, <em>R123</em>),
<style>
form .form-control{
- margin-right: 5px;
- width: 30em;
+ width: 500px;
+ max-width: 100%;
}
.form-text em {
font-family: monospace;
<UrlSubmitForm page="reverse">
<div class="form-group">
- <input name="format" type="hidden" value="html">
<label for="reverse-lat">lat</label>
<input id="reverse-lat"
name="lat"
placeholder="latitude"
bind:value={lat}
on:change={maybeSplitLatitude} />
+ </div>
+ <div class="form-group">
<a id="switch-coords"
on:click|preventDefault|stopPropagation={() => gotoCoordinates(lon, lat)}
class="btn btn-outline-secondary btn-sm"
title="switch lat and lon"><></a>
+ </div>
+ <div class="form-group">
<label for="reverse-lon">lon</label>
<input id="reverse-lon"
name="lon"
class="form-control form-control-sm"
placeholder="longitude"
bind:value={lon} />
+ </div>
+ <div class="form-group">
<label for="reverse-zoom">max zoom</label>
<select id="reverse-zoom" name="zoom" class="form-control form-control-sm" bind:value={zoom}>
<option value="">---</option>
<option value="{i}">{i} - {zoomTitle}</option>
{/each}
</select>
- <button type="submit" class="btn btn-primary btn-sm mx-1">
- Search
- </button>
+ </div>
+ <div class="form-group">
+ <button type="submit" class="btn btn-primary btn-sm mx-1">Search</button>
</div>
</UrlSubmitForm>
padding: 2px;
margin: 5px;
}
+
+ @media (max-width: 850px) {
+ #reverse-lon, #reverse-lat, #reverse-zoom {
+ width: 8em;
+ }
+ }
</style>