X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/0aa28e47e87fc78e152de7f1750e97ccf260c595..23ad83a45b7cb0fb0c07109230e869ab2cb7b3b5:/src/components/Header.svelte diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 0fbead9..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); }); }); @@ -74,7 +74,13 @@ -