From 372aad07d59054d74a69badb3485e827c296425f Mon Sep 17 00:00:00 2001 From: Mees Frensel Date: Thu, 26 Feb 2026 17:53:38 +0100 Subject: [PATCH] fix(web): gracefully handle map errors when WebGL is disabled --- i18n/en.json | 2 + .../shared-components/map/map.svelte | 228 ++++++++++-------- web/src/lib/constants.ts | 1 + 3 files changed, 130 insertions(+), 101 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 808fbeb695..fd870943bd 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -1050,6 +1050,7 @@ "cant_get_number_of_comments": "Can't get number of comments", "cant_search_people": "Can't search people", "cant_search_places": "Can't search places", + "enable_webgl_for_map": "Enable WebGL to load the map.{isAdmin, select, true { To hide this warning, disable the map feature.} other {}}", "error_adding_assets_to_album": "Error adding assets to album", "error_adding_users_to_album": "Error adding users to album", "error_deleting_shared_user": "Error deleting shared user", @@ -1245,6 +1246,7 @@ "go_back": "Go back", "go_to_folder": "Go to folder", "go_to_search": "Go to search", + "go_to_settings": "Go to settings", "gps": "GPS", "gps_missing": "No GPS", "grant_permission": "Grant permission", diff --git a/web/src/lib/components/shared-components/map/map.svelte b/web/src/lib/components/shared-components/map/map.svelte index 0b19306d6e..58b129585d 100644 --- a/web/src/lib/components/shared-components/map/map.svelte +++ b/web/src/lib/components/shared-components/map/map.svelte @@ -11,15 +11,17 @@