X-Git-Url: https://git.openstreetmap.org/nominatim-ui.git/blobdiff_plain/1df8bbfb327d8022a34cd2158853ad7e13d1a01e..163775c3501257af8f62601b0bb3565133c3bebb:/src/pages/DetailsPage.svelte

diff --git a/src/pages/DetailsPage.svelte b/src/pages/DetailsPage.svelte
index 5b8c1ce..5d6e663 100644
--- a/src/pages/DetailsPage.svelte
+++ b/src/pages/DetailsPage.svelte
@@ -1,7 +1,6 @@
 <script>
   import { onMount } from 'svelte';
   import { fetch_from_api, update_html_title } from '../lib/api_utils.js';
-  import { current_result_store } from '../lib/stores.js';
 
   import {
     osmLink, detailsURL, wikipediaLink, coverageType, isAdminBoundary,
@@ -15,6 +14,7 @@
   let aPlace;
   let errorResponse;
   let base_url = window.location.search;
+  let current_result;
 
   function loaddata() {
     var search_params = new URLSearchParams(window.location.search);
@@ -43,11 +43,11 @@
       fetch_from_api('details', api_request_params, function (data) {
         if (data.error) {
           errorResponse = data;
-          current_result_store.set(undefined);
+          current_result = undefined;
         } else {
           aPlace = data;
           errorResponse = undefined;
-          current_result_store.set(data);
+          current_result = data;
         }
       });
     } else {
@@ -175,7 +175,7 @@
       </div>
       <div class="col-md-6">
         <div id="map-wrapper">
-          <Map/>
+          <Map {current_result} />
         </div>
       </div>
     </div>
@@ -320,4 +320,4 @@
     height:300px;
     border: 1px solid #666;
   }
-</style>
\ No newline at end of file
+</style>
