Skip to content

Commit 4072349

Browse files
committed
Prefetch 1024px img in case of PANO photo
1 parent 4647e5e commit 4072349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openstreetmap/josm/plugins/mapillary/cache/MapillaryCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ private static void runnableCacheSurroundingImages(INode currentImage) {
176176
}
177177
final IWay<?> iWay = MapillaryImageUtils.getSequence(currentImage);
178178
// We prefetch both ways
179-
final Type type = Type.THUMB_256;
179+
final Type type = MapillaryImageUtils.IS_PANORAMIC.test(currentImage) ? Type.THUMB_1024 : Type.THUMB_256; // Prefetch larger pic in case of Pano photo.
180180
if (iWay != null) {
181181
// Avoid CME -- getImage may remove nodes from the way
182182
final List<? extends INode> wayNodes = new ArrayList<>(iWay.getNodes());

0 commit comments

Comments
 (0)