[openstreetmap/openstreetmap-website] Trace import: validate background job results (PR #5232)

2024-09-21 Thread mmd via rails-dev
While the discussion in #5038 is still ongoing, I have moved the unit test to a new PR. Validating the results of trace import background job is useful for both scenarios You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pul

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread mmd via rails-dev
@mmd-osm commented on this pull request. > @@ -945,6 +945,76 @@ img.trace_image { .node, .way, .relation { margin-left: 25px; } + + .svg_icon { +overflow: hidden; +display: inline-block; +margin-left: -25px; +width: 25px; +height: 18px; +/*rtl:ignore*/ transfo

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread mmd via rails-dev
@mmd-osm pushed 1 commit. ea30534be46a5150295a53c2c67b45332fd91c52 Visibility improvements for dark mode -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5080/files/40c07ec9b7b87923f3236ea09b9e30c35f973bb4..ea30534be46a5150295a53c2c67b45332fd91c52 You are receiv

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread mmd via rails-dev
Thank you for reviewing this PR another time. > some icons are too dark, I inverted and hue-rotated them; here it's not done > I suppose; see place_of_worship icon for an extreme example Agree, that's also something I've noticed. I'm pushing another commit now which should improve the situation

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread Anton Khorev via rails-dev
I still think it's [easier](https://github.com/openstreetmap/openstreetmap-website/pull/5080#issuecomment-2298987792) to switch to ``s first, then start replacing them with svgs, assuming all of the images have the same size. Hopefully we can avoid random pixel offsets in css. -- Reply to thi

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -945,6 +945,76 @@ img.trace_image { .node, .way, .relation { margin-left: 25px; } + + .svg_icon { +overflow: hidden; +display: inline-block; +margin-left: -25px; +width: 25px; +height: 18px; +/*rtl:ignore*/ tra

Re: [openstreetmap/openstreetmap-website] Browse icons as svg (PR #5080)

2024-09-21 Thread Anton Khorev via rails-dev
Some icons before/after in dark mode: ![image](https://github.com/user-attachments/assets/585a077d-b0ea-4f40-8558-29d2ef9165c4) ![image](https://github.com/user-attachments/assets/aa5853b5-e7ca-413f-a521-96b19d366b22) ; ![image](https://github.com/user-attachments/assets/9c12e700-99e5-41ed-be4

Re: [openstreetmap/openstreetmap-website] Fixed displacing points specified from context menu (PR #4904)

2024-09-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > -geocodeCallback(); - }); + if (endpoint.latlng.distanceTo(L.latLng(json.lat, json.lon)) > 200.0) { +input.val(endpoint.value); + } else { +endpoint.value = json.display_name; +inpu

Re: [openstreetmap/openstreetmap-website] Add social sharing functionality (PR #4985)

2024-09-21 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > @@ -0,0 +1,27 @@ +// Opening pop-ups with share URL +function openShareUrl(url, initialWidth = 640, initialHeight = 480) { + if (typeof url !== "string" || !url.startsWith("http")) { +console.error("Invalid URL"); // Consider removing this line

Re: [openstreetmap/openstreetmap-website] Allow exporting direction path tracks (Issue #5224)

2024-09-21 Thread mmd via rails-dev
I have updated the example URLs from above to only require start lat/lon and end lat/lon values as well as a profile. * Valhalla: `https://valhalla.openstreetmap.de/directions?profile=pedestrian&wps=120.8635823%2C24.1893169%2C120.8648163%2C24.1825192` * OSRM: `https://routing.openstreetmap.de/

[openstreetmap/openstreetmap-website] OCI: ignore invalid replacement token (PR #5231)

2024-09-21 Thread mmd via rails-dev
In #5210, updating the OSM community index failed due to invalid replacement tokens. This issue needs to be resolved upstream. However, we can add a bit of error handling and still apply the update. EN is used for erroneous translations. You can view, comment on, or merge this pull request onli