X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/3d2bdabb60a032509b5701c80a9fca2c4656060a..33ee9e3e73dfead56bd0a0067e35c3faad5b3404:/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 @@