[BUG] Clicking on a map cluster with lots of photos chooses one randomly #1088

Closed
opened 2026-02-05 00:24:29 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @osresearch on GitHub (Jul 11, 2023).

The bug

Screenshot_2023-07-11_11-39-11

When there are only a few photos in a map cluster, clicking on them brings up a pie menu to choose from the photos, but if there are many (more than 10?) it seems to choose one from the cluster and displays the lightbox for that one photo instead.

The OS that Immich Server is running on

Ubuntu 20.04

Version of Immich Server

v1.66.1

Version of Immich Mobile App

none

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

the default

Your .env content

the default

Reproduction steps

1. Upload lots of photos from one location
2. Go to the map view at a zoomed out level so that more than 10 are clustered together
3. Click on the cluster
4. Receive a random photo
...

Additional information

No response

Originally created by @osresearch on GitHub (Jul 11, 2023). ### The bug ![Screenshot_2023-07-11_11-39-11](https://github.com/immich-app/immich/assets/3068843/b443124e-8456-4f86-ab20-a1616f56cc22) When there are only a few photos in a map cluster, clicking on them brings up a pie menu to choose from the photos, but if there are many (more than 10?) it seems to choose one from the cluster and displays the lightbox for that one photo instead. ### The OS that Immich Server is running on Ubuntu 20.04 ### Version of Immich Server v1.66.1 ### Version of Immich Mobile App none ### Platform with the issue - [ ] Server - [X] Web - [ ] Mobile ### Your docker-compose.yml content ```YAML the default ``` ### Your .env content ```Shell the default ``` ### Reproduction steps ```bash 1. Upload lots of photos from one location 2. Go to the map view at a zoomed out level so that more than 10 are clustered together 3. Click on the cluster 4. Receive a random photo ... ``` ### Additional information _No response_
Author
Owner
@lifeart commented on GitHub (Jul 11, 2023): It seems we should not fallback to `0` here: https://github.com/immich-app/immich/blob/main/web/src/lib/components/shared-components/leaflet/marker-cluster/asset-marker-cluster.svelte#L88 If items > 10, first one is chosen: https://github.com/immich-app/immich/blob/main/web/src/lib/components/shared-components/leaflet/marker-cluster/asset-marker-cluster.svelte#L58
Author
Owner

@osresearch commented on GitHub (Jul 11, 2023):

IMG_4795

If the cluster is too large, a new feature that would be really nice is to open an album view of the photos in the cluster. Some other systems do this with their heatmap view.

@osresearch commented on GitHub (Jul 11, 2023): ![IMG_4795](https://github.com/immich-app/immich/assets/3068843/5557cdcf-3969-4831-92f5-a3eb24d262bd) If the cluster is too large, a new feature that would be really nice is to open an album view of the photos in the cluster. Some other systems do this with their heatmap view.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1088