From 407234982b739cb10cd6174e53581dc314c0b38e Mon Sep 17 00:00:00 2001 From: IreuN Date: Tue, 3 Dec 2024 19:56:51 +0100 Subject: [PATCH] Prefetch 1024px img in case of PANO photo --- .../josm/plugins/mapillary/cache/MapillaryCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCache.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCache.java index c87682dc9..df25a1ba7 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCache.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCache.java @@ -176,7 +176,7 @@ private static void runnableCacheSurroundingImages(INode currentImage) { } final IWay iWay = MapillaryImageUtils.getSequence(currentImage); // We prefetch both ways - final Type type = Type.THUMB_256; + final Type type = MapillaryImageUtils.IS_PANORAMIC.test(currentImage) ? Type.THUMB_1024 : Type.THUMB_256; // Prefetch larger pic in case of Pano photo. if (iWay != null) { // Avoid CME -- getImage may remove nodes from the way final List wayNodes = new ArrayList<>(iWay.getNodes());