X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/349f05287a5b6fbb19f4c1638cc1d75ab258fb66..9106292ade3ec53e568287c5d72daa0ec7eb9e30:/src/pages/DetailsPage.svelte diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte index 500c5c3..9d72944 100644 --- a/src/pages/DetailsPage.svelte +++ b/src/pages/DetailsPage.svelte @@ -4,13 +4,14 @@ 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'; @@ -71,7 +72,7 @@

- {aPlace.localname} + {aPlace.localname || `${formatOSMType(aPlace.osm_type)} ${aPlace.osm_id}` } link to this page

@@ -83,7 +84,13 @@
- + + {#if (Array.isArray(aPlace.names)) } + No Name + {:else} + + {/if} + {aPlace.category}:{aPlace.type}{aPlace.indexed_date} {#if (isAdminBoundary(aPlace)) } @@ -109,7 +116,12 @@ {#if aPlace.calculated_wikipedia} {@html wikipediaLink(aPlace)} {/if} - {aPlace.calculated_postcode || ''} + + {#if aPlace.calculated_postcode} + {aPlace.calculated_postcode} + + {/if} + @@ -243,6 +255,9 @@ border-top: none !important; padding-left: 0 !important; } + :global(span.noname){ + color:#800; + } #map-wrapper { width:100%;