From 8a5f5883baffaef061237e8b66394ba0d407f709 Mon Sep 17 00:00:00 2001 From: Sven Anders Date: Mon, 9 Dec 2024 07:58:14 +0100 Subject: [PATCH] Add Source to thumbnail image. Perhabs a fix to #506 untested. --- app/javascript/controllers/maps_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/controllers/maps_controller.js b/app/javascript/controllers/maps_controller.js index 338444cf..7c03fc47 100644 --- a/app/javascript/controllers/maps_controller.js +++ b/app/javascript/controllers/maps_controller.js @@ -802,7 +802,7 @@ export default class extends Controller { createPhotoMarker(photo) { if (!photo.exifInfo?.latitude || !photo.exifInfo?.longitude) return; - const thumbnailUrl = `/api/v1/photos/${photo.id}/thumbnail.jpg?api_key=${this.apiKey}`; + const thumbnailUrl = `/api/v1/photos/${photo.id}/thumbnail.jpg?api_key=${this.apiKey}&source=${photo.source}`; const icon = L.divIcon({ className: 'photo-marker',