X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c296bef87014f72b3f8aae878b9a23f6c08780a7..daea333875ff6b51d99dea24997019e573e201c2:/src/components/Header.svelte 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); }); });