X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..438f28dde974881d2628fcf9a9cc1a811e90ebe1:/src/components/Header.svelte diff --git a/src/components/Header.svelte b/src/components/Header.svelte index d38c87c..0fbead9 100644 --- a/src/components/Header.svelte +++ b/src/components/Header.svelte @@ -2,10 +2,25 @@ import PageLink from './PageLink.svelte'; import ReverseLink from './ReverseLink.svelte'; import LastUpdated from './LastUpdated.svelte'; + import Error from './Error.svelte'; - import { page } from '../lib/stores.js'; + import { map_store, page } from '../lib/stores.js'; $: view = $page.tab; + $: page_title = Nominatim_Config.Page_Title; + $: reverse_only = Nominatim_Config.Reverse_Only; + + let map_lat; + let map_lon; + + map_store.subscribe(map => { + if (!map) return; + + map.on('move', function () { + map_lat = map.getCenter().lat; + map_lon = map.getCenter().lng; + }); + });
-
+
+

{view}

+
+