mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-21 19:26:41 +02:00
extend kartaview's domain hotpatching, use full resolution images, fixes #10927
This commit is contained in:
@@ -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 preset’s aliases (in addition to the preset’s name) in the user’s 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
|
||||
|
||||
@@ -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