From a7662e9e06d47ac03f0941a198d9b4e46c27b00d Mon Sep 17 00:00:00 2001 From: marc tobias Date: Tue, 1 Aug 2023 13:55:06 +0200 Subject: [PATCH] when clicking on -reverse- tab then round coordinates first --- src/components/Header.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); }); -- 2.39.5