X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9e8d3367fe08a708b1019ff39ac752e0105be20a..c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535:/src/pages/DetailsPage.svelte?ds=sidebyside
diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte
index 40a92f6..d480050 100644
--- a/src/pages/DetailsPage.svelte
+++ b/src/pages/DetailsPage.svelte
@@ -6,8 +6,9 @@
osmLink, wikipediaLink, coverageType, isAdminBoundary,
formatAddressRank, formatKeywordToken
} from '../lib/helpers.js';
+ import Header from '../components/Header.svelte';
import MapIcon from '../components/MapIcon.svelte';
- import DetailsIndex from '../components/DetailsIndex.svelte';
+ import SearchSectionDetails from '../components/SearchSectionDetails.svelte';
import DetailsOneRow from '../components/DetailsOneRow.svelte';
import DetailsLink from '../components/DetailsLink.svelte';
import Map from '../components/Map.svelte';
@@ -16,9 +17,10 @@
let errorResponse;
let base_url = window.location.search;
let current_result;
+ let api_request_params;
function loaddata(search_params) {
- var api_request_params = {
+ api_request_params = {
place_id: search_params.get('place_id'),
osmtype: search_params.get('osmtype'),
osmid: search_params.get('osmid'),
@@ -40,7 +42,7 @@
}
fetch_from_api('details', api_request_params, function (data) {
- window.scrollTo(0, 0)
+ window.scrollTo(0, 0);
if (data.error) {
errorResponse = data;
current_result = undefined;
@@ -63,6 +65,9 @@
}
+
{#if errorResponse}
{errorResponse.error.message}
{/if}
@@ -270,7 +275,7 @@
{:else if (window.location.search === '')}
-
+
{:else}
No such place found.
{/if}