Skip to content

Commit

Permalink
Actually open the image and not the map via URL
Browse files Browse the repository at this point in the history
  • Loading branch information
ireun committed Dec 4, 2024
1 parent 4101cf6 commit 560c930
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
}

Expand Down

0 comments on commit 560c930

Please sign in to comment.