]> git.openstreetmap.org Git - nominatim-ui.git/blobdiff - src/pages/ReversePage.svelte
Reverse map: show search position (red circle) also when no search results
[nominatim-ui.git] / src / pages / ReversePage.svelte
index b43750fe46d680ae7600686fcb6e35ae15842bbc..7d1fe609075d9809e5f4add0c1a5fb9a1a534b37 100644 (file)
@@ -26,8 +26,8 @@
     if (api_request_params.lat || api_request_params.lat) {
 
       fetch_from_api('reverse', api_request_params, function (data) {
+        position_marker = [api_request_params.lat, api_request_params.lon];
         if (data && !data.error) {
-          position_marker = [api_request_params.lat, api_request_params.lon];
           results_store.set([data]);
         } else {
           results_store.set([]);