High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(web): map broken after redirect from details (#19424)
Yarosc705a7b2807a
diff --git a/web/src/lib/components/shared-components/map/map.svelte b/web/src/lib/components/shared-components/map/map.svelteindex 06c754f0dc..d5b531dfc7 100644--- a/web/src/lib/components/shared-components/map/map.svelte+++ b/web/src/lib/components/shared-components/map/map.svelte@@ -7,6 +7,7 @@</script><script lang="ts">+ import { afterNavigate } from '$app/navigation';import Icon from '$lib/components/elements/icon.svelte';import { Theme } from '$lib/constants';import { modalManager } from '$lib/managers/modal-manager.svelte';@@ -213,6 +214,17 @@}};+ afterNavigate(() => {+ if (map) {+ map.resize();++ if (globalThis.location.hash) {+ const hashChangeEvent = new HashChangeEvent('hashchange');+ globalThis.dispatchEvent(hashChangeEvent);+ }+ }+ });+onMount(async () => {if (!mapMarkers) {mapMarkers = await loadMapMarkers();