mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 00:29:50 +02:00
extend kartaview's domain hotpatching, use full resolution images, fixes #10927
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user