X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/eacd4882e8ba181eb4b02c8af729e041c60ec534..f9ae81bddd61b9749df987e6c8ee9263ae464705:/src/pages/DetailsPage.svelte diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index bb72e14..baac180 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -4,19 +4,20 @@ import { osmLink, wikipediaLink, coverageType, isAdminBoundary, - formatAddressRank, formatKeywordToken + formatAddressRank, formatKeywordToken, formatOSMType } from '../lib/helpers.js'; import Header from '../components/Header.svelte'; import MapIcon from '../components/MapIcon.svelte'; 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; } } @@ -70,11 +72,11 @@
Linked Places | |||||
Keywords | |||||
Name Keywords | |||||
{formatKeywordToken(keyword.token)} | - {#if keyword.id} -word id: {keyword.id} | - {/if} -||||
Address Keywords | |||||
{formatKeywordToken(keyword.token)} | - {#if keyword.id} -word id: {keyword.id} | - {/if} -||||
Name Keywords | |||||
{formatKeywordToken(keyword.token)} | + {#if keyword.id} +word id: {keyword.id} | + {/if} +||||
Address Keywords | |||||
{formatKeywordToken(keyword.token)} | + {#if keyword.id} +word id: {keyword.id} | + {/if} +||||
Place has no keywords | |||||
@@ -180,17 +200,20 @@ {/if} | |||||
Parent Of | |||||
{type} | |||||
{type} | |||||
Place is not parent of other places | |||||