X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9ad36e2ce2a63535b7071acd26bc819d989b2f17..cf3e8f8daa0f2f4b014b9df6c32a436248237140:/src/components/Header.svelte?ds=inline

diff --git a/src/components/Header.svelte b/src/components/Header.svelte
index 97cbebd..0d678bd 100644
--- a/src/components/Header.svelte
+++ b/src/components/Header.svelte
@@ -17,8 +17,8 @@
     if (!map) return;
 
     map.on('move', function () {
-      map_lat = map.getCenter().lat;
-      map_lon = map.getCenter().lng;
+      map_lat = map.getCenter().lat.toFixed(5);
+      map_lon = map.getCenter().lng.toFixed(5);
     });
   });
 </script>
