commit 5ac843fe6d939ba332fec099634208bee72caa33
parent 78fef7f36b4439dda8ea8fd32f3b13fb661e31ed
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Tue, 10 Mar 2026 22:17:12 +0100
panoramas[wikimedia]: use original images URL
we were constructing thumbnail url, substituting original image size
this was a hack to force wikimedia backend always orient imeage right.
But now they do not allow it and reply 426.
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/src/lib/leaflet.control.panoramas/lib/wikimedia/index.js b/src/lib/leaflet.control.panoramas/lib/wikimedia/index.js
@@ -82,13 +82,8 @@ function parseSearchResponse(resp) { // eslint-disable-line complexity
if (author && /^<table (.|\n)+<\/table>$/u.test(author)) {
author = `See author info at <a href="${iinfo.descriptionurl}">Wikimedia commons</a>`;
}
-
- // original images can be rotated, 90 degrees
- // thumbnails are always oriented right
- // so we request thumbnail of original image size
- let url = iinfo.thumburl.replace(/\/(134|250)px-/u, `/${iinfo.width}px-`);
images.push({
- url,
+ url: iinfo.url,
width: iinfo.width,
height: iinfo.height,
lat: coordinates.lat,