X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/3d2bdabb60a032509b5701c80a9fca2c4656060a..23ad83a45b7cb0fb0c07109230e869ab2cb7b3b5:/src/components/Header.svelte diff --git a/src/components/Header.svelte b/src/components/Header.svelte index 514fe20..0d678bd 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -8,6 +8,7 @@ $: view = $page.tab; $: page_title = Nominatim_Config.Page_Title; + $: reverse_only = Nominatim_Config.Reverse_Only; let map_lat; let map_lon; @@ -16,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); }); }); @@ -64,37 +65,60 @@