High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(web): improve non-Latin text rendering on the map (#31611)
Mees Frenselc6b363e62512
diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex ea6aad2612..5357c6c235 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -803,9 +803,6 @@ importers:'@immich/ui':specifier: ^0.86.0version: 0.86.0(@sveltejs/[email protected](@opentelemetry/[email protected])(@sveltejs/[email protected]([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))(@typescript/[email protected])([email protected](@typescript-eslint/[email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected](@typescript-eslint/[email protected]))- '@mapbox/mapbox-gl-rtl-text':- specifier: 0.4.0- version: 0.4.0'@mdi/js':specifier: ^7.4.47version: 7.4.47@@ -879,8 +876,8 @@ importers:specifier: ^3.4.4version: 3.7.2maplibre-gl:- specifier: ^6.0.0- version: 6.8.0+ specifier: ^6.9.0+ version: 6.9.0media-chrome:specifier: ^4.19.0version: 4.19.2([email protected])@@ -3620,9 +3617,6 @@ packages:resolution: {integrity: sha512-0SElaV0uMxEnxzBhhX9WTuPyUeMsAN/SS0i16tjuba4/mio63MG9khjC1a0JAiPGXAwvwm4UfHJURCN7nyudQg==}engines: {node: '>= 22'}- '@mapbox/[email protected]':- resolution: {integrity: sha512-WNSgEFxXd2a15Eh2GwZNWBiV7Z8leq8JEGcoHpfrgaBDmFQMW4a1MO5Ol9BNv6APqTbHZ8uq7L8H5q2KCVt1kg==}-'@mapbox/[email protected]':resolution: {integrity: sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==}hasBin: true@@ -3642,8 +3636,8 @@ packages:'@maplibre/[email protected]':resolution: {integrity: sha512-FVMOcmSP/yqol45t7StApEyTL5/vmqBCuFhH9n+fFuINenhaX+YgHHIt1yJ86S8kln3uJLcMvmEU2cfn6E2eCQ==}- '@maplibre/[email protected]':- resolution: {integrity: sha512-I/qcIKVFHFSg1Meu/eqHrkSTjIez0gCsSaK56TNPutM3TkE61aSq6F1cZ4Kg4KiNs3cpViLtubDjfyRcQCdEJQ==}+ '@maplibre/[email protected]':+ resolution: {integrity: sha512-rNjb1pPYtdF3aHziWv9v8D1Y8C+sYZtzBX0vwjitPanQi5IuhMvmoHN/GoiLwuY/gssLkJ2/IG6C25Wn77ZdJg==}hasBin: true'@maplibre/[email protected]':@@ -6465,6 +6459,9 @@ packages:resolution: {integrity: sha512-cU8v/EGSrnH+HnxV2z0J7/blxH8gq7Xh2JFT6Aroax7UohdmiJJlxApMxtKfuI7z68NvvVcmR78k2LbT6efhRg==}engines: {node: '>= 18'}+ resolution: {integrity: sha512-fX1Onk0tdVPC7obPWB5EbJ1z7NVhLq4m2xZLq2YXBkxzMXIGRpNMU88n0EPgWseKl12J7zXs7qrDxPK4sRs2fg==}+resolution: {integrity: sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ==}@@ -9729,8 +9726,8 @@ packages:resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==}engines: {node: '>=10'}- resolution: {integrity: sha512-+ZkjKTodsVLY0ewQThvXRxXQsclcsSgOm5LlnrBM3G8AloMJKt6Haw8mY4xrOl8T0WMqH6DTYjktZ9zGQXZd4w==}+ resolution: {integrity: sha512-vFMwMK0Zs+NM/rOMSdtu8bO30DIexhBEVi5KC6f70/XtI+L/K2wC3LsDCAXFZ4s8ik5gAuDugfCNbpllpdJ9bA==}engines: {node: '>=16.14.0', npm: '>=8.1.0'}@@ -16893,8 +16890,6 @@ snapshots:'@mapbox/[email protected]': {}- '@mapbox/[email protected]': {}-'@mapbox/[email protected]([email protected])':dependencies:detect-libc: 2.1.2@@ -16926,7 +16921,7 @@ snapshots:dependencies:kdbush: 4.1.0- '@maplibre/[email protected]':+ '@maplibre/[email protected]':dependencies:'@mapbox/jsonlint-lines-primitives': 2.0.3'@mapbox/unitbezier': 1.0.0@@ -19714,6 +19709,10 @@ snapshots:node-gyp: 13.0.0node-gyp-build: 4.8.4+ dependencies:+ require-from-string: 2.0.2+@@ -23474,17 +23473,18 @@ snapshots:dependencies:semver: 7.8.5dependencies:'@mapbox/point-geometry': 1.1.0'@mapbox/tiny-sdf': 2.2.0'@mapbox/unitbezier': 1.0.0'@mapbox/vector-tile': 3.0.0'@maplibre/geojson-vt': 6.1.1- '@maplibre/maplibre-gl-style-spec': 26.4.1+ '@maplibre/maplibre-gl-style-spec': 26.4.3'@maplibre/mlt': 1.2.1'@maplibre/vt-pbf': 4.3.2'@types/geojson': 7946.0.16+ bidi-js: 1.1.0earcut: 3.2.3gl-matrix: 3.4.4kdbush: 4.1.0@@ -26798,7 +26798,7 @@ snapshots:d3-geo: 3.1.1dequal: 2.0.3just-compare: 2.3.0- maplibre-gl: 6.8.0+ maplibre-gl: 6.9.0pmtiles: 3.2.1svelte: 5.56.10(@typescript-eslint/[email protected])diff --git a/web/package.json b/web/package.jsonindex 9f52114798..692548872a 100644--- a/web/package.json+++ b/web/package.json@@ -28,7 +28,6 @@"@immich/justified-layout-wasm": "^0.4.3","@immich/sdk": "workspace:*","@immich/ui": "^0.86.0",- "@mapbox/mapbox-gl-rtl-text": "0.4.0","@mdi/js": "^7.4.47","@noble/hashes": "^2.2.0","@photo-sphere-viewer/core": "^5.14.0",@@ -53,7 +52,7 @@"justified-layout": "^4.1.0","lodash-es": "^4.17.21","luxon": "^3.4.4",- "maplibre-gl": "^6.0.0",+ "maplibre-gl": "^6.9.0","media-chrome": "^4.19.0","pmtiles": "^4.3.0","qrcode": "^1.5.4",diff --git a/web/src/lib/components/shared-components/map/Map.svelte b/web/src/lib/components/shared-components/map/Map.svelteindex e227e7da81..a3fda214c7 100644--- a/web/src/lib/components/shared-components/map/Map.svelte+++ b/web/src/lib/components/shared-components/map/Map.svelte@@ -1,13 +1,11 @@<script lang="ts" module>- import mapboxRtlUrl from '@mapbox/mapbox-gl-rtl-text?url';- import { addProtocol, setRTLTextPlugin, setWorkerUrl } from 'maplibre-gl';+ import { addProtocol, setWorkerUrl } from 'maplibre-gl';import workerUrl from 'maplibre-gl/dist/maplibre-gl-worker.mjs?worker&url';import { Protocol } from 'pmtiles';let protocol = new Protocol();setWorkerUrl(workerUrl);void addProtocol('pmtiles', protocol.tile);- void setRTLTextPlugin(mapboxRtlUrl, true);</script><script lang="ts">