From: marc tobias Date: Tue, 1 Aug 2023 11:55:06 +0000 (+0200) Subject: when clicking on -reverse- tab then round coordinates first X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/commitdiff_plain/a7662e9e06d47ac03f0941a198d9b4e46c27b00d?ds=sidebyside;hp=1e52708ba183a23280db004e28284a0ce6f1b5a8 when clicking on -reverse- tab then round coordinates first --- 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); }); });