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
View File
@@ -48,6 +48,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
* Add keyboard shortcut `Shift + P` to toggle active street level photo layers ([#10394], thanks [@mattiapezzotti]))
* Add prev/next button to viewer for local georeferenced photos ([#10852], thanks [@0xatulpatil])
* Add button to directly attach the id of a Panoramax photo as the `panoramax` tag of selected map features ([#10856], thanks [@MohamedAli00949])
* Fix unreliable availability of KartaView images by requesting full resolution images ([#10927])
#### :white_check_mark: Validation
* The Suspicious Names validator warning now also compares the Name field to the presets aliases (in addition to the presets name) in the users language
#### :bug: Bugfixes
@@ -78,6 +79,7 @@ _Breaking developer changes, which may affect downstream projects or sites that
[#10885]: https://github.com/openstreetmap/iD/issues/10885
[#10910]: https://github.com/openstreetmap/iD/pull/10910
[#10916]: https://github.com/openstreetmap/iD/pull/10916
[#10927]: https://github.com/openstreetmap/iD/issues/10927
[id-tagging-schema#609]: https://github.com/openstreetmap/id-tagging-schema/issues/609
[@0xatulpatil]: https://github.com/0xatulpatil
[@MohamedAli00949]: https://github.com/MohamedAli00949
+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) {