[BUG] Lonely photo is not shown on a map #1202

Closed
opened 2026-02-05 00:51:39 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @waclaw66 on GitHub (Aug 8, 2023).

The bug

Single photo in a long distance from others is not shown on a map.

I have three assets on a map:

  • San Francisco
  • Flagstaff
  • New York

They are shown like this...
obrazek
obrazek
obrazek

The photo from NY is not shown even it's zoomed enough.
When I add additional taken in the DC, both are shown.

obrazek

The OS that Immich Server is running on

Fedora 38

Version of Immich Server

v1.72.2

Version of Immich Mobile App

v1.72.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not relevant

Your .env content

not relevant

Reproduction steps

see above

Additional information

No response

Originally created by @waclaw66 on GitHub (Aug 8, 2023). ### The bug Single photo in a long distance from others is not shown on a map. I have three assets on a map: - San Francisco - Flagstaff - New York They are shown like this... ![obrazek](https://github.com/immich-app/immich/assets/15554561/5fc54005-2a17-4fd1-bd75-ef7f7a77cc54) ![obrazek](https://github.com/immich-app/immich/assets/15554561/492d182c-5f33-4c34-a97e-bf83f38c52d2) ![obrazek](https://github.com/immich-app/immich/assets/15554561/dd5cdd3d-dbf5-4f3b-a2fd-dcebca6e7087) The photo from NY is not shown even it's zoomed enough. When I add additional taken in the DC, both are shown. ![obrazek](https://github.com/immich-app/immich/assets/15554561/ef9b85e4-3747-4933-b401-61584bd404e3) ### The OS that Immich Server is running on Fedora 38 ### Version of Immich Server v1.72.2 ### Version of Immich Mobile App v1.72.0 ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML not relevant ``` ### Your .env content ```Shell not relevant ``` ### Reproduction steps ```bash see above ``` ### Additional information _No response_
Author
Owner

@valonsodev commented on GitHub (Aug 10, 2023):

I can reproduce this, someone explained the problem in the stackoverflow link in this comment but it happened inside of some react wrapper.
Changing the options.minZoom prop of the <Map/> tag inside src/routes/(user)/map/+page.svelte to a rounded integer fixes this issue (either 2 or 3).

diff --git a/web/src/routes/(user)/map/+page.svelte b/web/src/routes/(user)/map/+page.svelte
index 12aef1a9..bfc1d2fa 100644
--- a/web/src/routes/(user)/map/+page.svelte
+++ b/web/src/routes/(user)/map/+page.svelte
@@ -111,7 +111,7 @@
             [-90, -180],
             [90, 180],
           ],
-          minZoom: 2.5,
+          minZoom: 2,
         }}
       >
         <TileLayer
@valonsodev commented on GitHub (Aug 10, 2023): I can reproduce this, someone explained the problem in the [stackoverflow link](https://stackoverflow.com/questions/57383443/single-marker-fails-to-get-rendered-if-it-is-not-in-or-close-to-a-cluster) in this [comment](https://github.com/Leaflet/Leaflet.markercluster/issues/1063#issuecomment-1328089176) but it happened inside of some react wrapper. Changing the options.minZoom prop of the \<Map/> tag inside src/routes/(user)/map/+page.svelte to a rounded integer fixes this issue (either 2 or 3). ```diff diff --git a/web/src/routes/(user)/map/+page.svelte b/web/src/routes/(user)/map/+page.svelte index 12aef1a9..bfc1d2fa 100644 --- a/web/src/routes/(user)/map/+page.svelte +++ b/web/src/routes/(user)/map/+page.svelte @@ -111,7 +111,7 @@ [-90, -180], [90, 180], ], - minZoom: 2.5, + minZoom: 2, }} > <TileLayer ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1202