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()); diff --git a/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java b/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java index 300517b9e..7d78abfd2 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java +++ b/src/main/java/org/openstreetmap/josm/plugins/mapillary/spi/preferences/IMapillaryUrls.java @@ -320,7 +320,7 @@ default URI browseImage(String key) { if (key == null) { throw new IllegalArgumentException("The image key must not be null!"); } - return string2URL(getBaseUrl(), "app/?pKey=", key); + return string2URL(getBaseUrl(), "app/?pKey=", key, "&focus=photo"); } /** diff --git a/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java b/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java index 1cda1a4c7..5c2cc09ca 100644 --- a/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java +++ b/test/unit/org/openstreetmap/josm/plugins/mapillary/utils/MapillaryURLTest.java @@ -26,7 +26,7 @@ class MapillaryURLTest { @Test void testBrowseImageURL() { - assertEquals(URI.create("https://www.mapillary.com/app/?pKey=1234567890123456789012"), + assertEquals(URI.create("https://www.mapillary.com/app/?pKey=1234567890123456789012&focus=photo"), MapillaryConfig.getUrls().browseImage("1234567890123456789012")); }