]> git.openstreetmap.org Git - nominatim-ui.git/commitdiff
when clicking on -reverse- tab then round coordinates first
authormarc tobias <mtmail@gmx.net>
Tue, 1 Aug 2023 11:55:06 +0000 (13:55 +0200)
committermtmail <mtmail@gmx.net>
Tue, 1 Aug 2023 12:03:51 +0000 (14:03 +0200)
src/components/Header.svelte

index 97cbebdd4d0f3d2a4aa8189903c16a53b2dcc80b..0d678bd85bc8b2cab05d49333051a841a328d935 100644 (file)
@@ -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>