extend kartaview's domain hotpatching, use full resolution images, fixes #10927

This commit is contained in:
Martin Raifer
2025-04-04 13:53:18 +02:00
parent 65e9ed6774
commit ade83ba6e0
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -105,7 +105,7 @@ function loadNextTilePage(which, currZoom, url, tile) {
ca: +item.heading,
captured_at: (item.shot_date || item.date_added),
captured_by: item.username,
imagePath: item.lth_name,
imagePath: item.name,
sequence_id: item.sequence_id,
sequence_index: +item.sequence_index
};
@@ -444,7 +444,7 @@ export default {
imageWrap
.append('img')
.attr('class', 'kartaview-image')
.attr('src', (apibase + '/' + d.imagePath).replace('https://kartaview.org/storage2/', 'https://storage2.openstreetcam.org/'))
.attr('src', (apibase + '/' + d.imagePath).replace(/^https:\/\/kartaview\.org\/storage(\d+)\//, 'https://storage$1.openstreetcam.org/'))
.style('transform', 'rotate(' + r + 'deg)');
if (d.captured_by) {