X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/c061d3fd3d4c9135fdbda0af273d9fc0dc5b5535..9106292ade3ec53e568287c5d72daa0ec7eb9e30:/src/components/Header.svelte
diff --git a/src/components/Header.svelte b/src/components/Header.svelte
index d38c87c..514fe20 100644
--- a/src/components/Header.svelte
+++ b/src/components/Header.svelte
@@ -2,10 +2,24 @@
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;
+
+ 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;
+ });
+ });
-
+
+