X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/f2633dcc2939466943d2257439c12775fb712a11..9bd6e72026d6b978ed3f5004be73fd253ef82318:/src/pages/DetailsPage.svelte?ds=sidebyside diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index bbf2bf5..34a7f63 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -11,12 +11,13 @@ import SearchSectionDetails from '../components/SearchSectionDetails.svelte'; import DetailsOneRow from '../components/DetailsOneRow.svelte'; import DetailsLink from '../components/DetailsLink.svelte'; + import DetailsPostcodeHint from '../components/DetailsPostcodeHint.svelte'; import InfoRow from '../components/DetailsInfoRow.svelte'; import InfoRowList from '../components/DetailsInfoRowList.svelte'; import Map from '../components/Map.svelte'; let aPlace; - let base_url = window.location.search; + let base_url; let api_request_params; let api_request_finished = false; @@ -57,6 +58,7 @@ let pageinfo = $page; if (pageinfo.tab === 'details') { loaddata(pageinfo.params); + base_url = window.location.search; } } @@ -80,7 +82,7 @@
- +
{aPlace.category}:{aPlace.type} @@ -108,7 +110,12 @@ {#if aPlace.calculated_wikipedia} {@html wikipediaLink(aPlace)} {/if} - {aPlace.calculated_postcode || ''} + + {#if aPlace.calculated_postcode} + {aPlace.calculated_postcode} + + {/if} + @@ -138,14 +145,14 @@ {#if aPlace.address} {#each aPlace.address as addressLine} - + {/each} {/if} {#if aPlace.linked_places} {#each aPlace.linked_places as addressLine} - + {/each} {/if} @@ -161,15 +168,17 @@ {/each} - - {#each aPlace.keywords.address as keyword} - - - {#if keyword.id} - - {/if} - - {/each} + {#if aPlace.keywords.address} + + {#each aPlace.keywords.address as keyword} + + + {#if keyword.id} + + {/if} + + {/each} + {/if} {:else}

Linked Places

Address Keywords

{formatKeywordToken(keyword.token)}word id: {keyword.id}

Address Keywords

{formatKeywordToken(keyword.token)}word id: {keyword.id}
@@ -241,9 +250,6 @@ padding-left: 0 !important; } - .table { - width: 100%; - } #map-wrapper { width:100%; min-height: auto;