X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/9ad36e2ce2a63535b7071acd26bc819d989b2f17..23ad83a45b7cb0fb0c07109230e869ab2cb7b3b5:/src/components/Header.svelte?ds=sidebyside 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); }); });