[openstreetmap/openstreetmap-website] Add button for directions from location (PR #5635)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
### Description Adds a button into the directions search form: | before | after | ||| | ![before](https://github.com/user-attachments/assets/83a0c449-afaf-4f18-bdec-468dd7b8c80b) | ![after](https://github.com/user-attachments/assets/6a4faa5f-065a-45ae-a2e6-f346975ebb53) | You c

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -124,7 +124,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, > iconUrl, dragCallback, ch function getReverseGeocode() { var latlng = endpoint.latlng.clone(); -var reverseGeocodeUrl = OSM.NOMINATIM_URL + "reverse?lat=" + latlng

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. cdacfafd11bd5265cc8d8b69468bca36010434ee Further usage of URLSearchParams -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634/files/080062d7ce75309abbe6542ec948068a727d7d64..cdacfafd11bd5265cc8d8b69468bca36010434ee You are receiving thi

Re: [openstreetmap/openstreetmap-website] Set iD map param with array (PR #5632)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin approved this pull request. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5632#pullrequestreview-2604130700 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -124,7 +124,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, > iconUrl, dragCallback, ch function getReverseGeocode() { var latlng = endpoint.latlng.clone(); -var reverseGeocodeUrl = OSM.NOMINATIM_URL + "reverse?lat="

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 55d16a42172be67ee33e95bb85343b18b45754dd Skip jQuery -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5633/files/a3089c574efd1543cf0942e14791940ec5b8c1f0..55d16a42172be67ee33e95bb85343b18b45754dd You are receiving this because you are sub

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 3 commits. 572029358a82e5e7925b92f21413376324a4fdb5 Reduce condition complexity 559ac7a9c7be9e8a86aa702baa6d7445c8e775f5 Lessen code repetition a3089c574efd1543cf0942e14791940ec5b8c1f0 Remove IE<10 workaround -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-w

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
Dropping https://github.com/hlfan/openstreetmap-website/commit/7f3a036483f626684c5cb1d286f8050d0335dd91 as tests didn't like it -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634#issuecomment-2646073042 You are receiving this b

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan commented on this pull request. > @@ -124,7 +124,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, > iconUrl, dragCallback, ch function getReverseGeocode() { var latlng = endpoint.latlng.clone(); -var reverseGeocodeUrl = OSM.NOMINATIM_URL + "reverse?lat=" + latlng

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 1 commit. 080062d7ce75309abbe6542ec948068a727d7d64 Further usage of URLSearchParams -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634/files/2606a0a83134c954570a2c13c3de133ced69f772..080062d7ce75309abbe6542ec948068a727d7d64 You are receiving thi

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
@hlfan pushed 0 commits. -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5634/files/7f3a036483f626684c5cb1d286f8050d0335dd91..2606a0a83134c954570a2c13c3de133ced69f772 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 2 commits. 835872afc9860daa422091c3969009cc43dc1071 Split api old element redacted index tests 4706bfe9ce3164377b7284cfba1abe085e7b2687 Split api old element redacted show tests -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5590/files/f

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 3 commits. bbcc274b3072e4bba2d39336d6d8a9256d398d32 Move api way version test to integration tests 8db24a640506415a32ad211aba48c51b15e70200 Test api old way show action without integration fb0c9ada6e496e8b09ff6e6baad099e25e377d07 Remove unused api old relation test code

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 12 commits. 83a23c3ba79cbbaa6b0483ea108507dd2bfa9fa3 Declare api node ways as nested resources b8189ee645cea2e6db87ac7cd1986ca785439ccf Declare api node relations as nested resources 5235aec9d68cf63b61a47910f99ac300f6c361af Declare api way relations as nested resources 8e

Re: [openstreetmap/openstreetmap-website] Add OpenMapTiles vector map (PR #4042)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev commented on this pull request. > +function update3dMapUrl() { + var el = document.getElementById("terrain_3d_url"); + + if (el) { +var c = map.getCenter(); +var zoom = map.getZoom() - 1; +var precision = Math.ceil(((zoom * Math.LN2) + Math.log(

Re: [openstreetmap/openstreetmap-website] Drop eslint initialiser (PR #5631)

2025-02-08 Thread Anton Khorev via rails-dev
Actually i18n files don't pass, they're excluded elsewhere: https://github.com/openstreetmap/openstreetmap-website/blob/4027d0c30abb5c50ac61785a57a8699de000ddd7/lib/tasks/eslint.rake#L13 That was added in https://github.com/openstreetmap/openstreetmap-website/commit/d67b0578511e585fabebeb4800cb1

Re: [openstreetmap/openstreetmap-website] Drop eslint initialiser (PR #5631)

2025-02-08 Thread Anton Khorev via rails-dev
Merged #5631 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5631#event-16236779489 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -61,13 +61,9 @@ OSM.Changeset = function (map) { }); content.find("textarea").on("input", function (e) { - var form = e.target.form; - - if ($(e.target).val() === "") { -$(form.comment).prop("disabled", true); -

Re: [openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -61,13 +61,9 @@ OSM.Changeset = function (map) { }); content.find("textarea").on("input", function (e) { - var form = e.target.form; - - if ($(e.target).val() === "") { -$(form.comment).prop("disabled", true); -

Re: [openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin commented on this pull request. > @@ -124,7 +124,7 @@ OSM.DirectionsEndpoint = function Endpoint(map, input, > iconUrl, dragCallback, ch function getReverseGeocode() { var latlng = endpoint.latlng.clone(); -var reverseGeocodeUrl = OSM.NOMINATIM_URL + "reverse?lat="

[openstreetmap/openstreetmap-website] Increase usage of URLSearchParams (PR #5634)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
Another few steps in embracing URLSearchParams. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5634 -- Commit Summary -- * Further usage of URLSearchParams * Build search params only after update -- File Changes

[openstreetmap/openstreetmap-website] Lessen code repetition (PR #5633)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
Simplifying if-else structures and condensing repeated expressions. At least the things I found with my regex search. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5633 -- Commit Summary -- * Reduce condition compl

[openstreetmap/openstreetmap-website] Set iD map param with array (PR #5632)

2025-02-08 Thread Marwin Hochfelsner via rails-dev
Splitting parameter population and assignment, enabling a singular later default zoom value definition. A new take on what was dropped in #5597. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-website/pull/5632 -- Commit Summary --

Re: [openstreetmap/openstreetmap-website] Drop eslint initialiser (PR #5631)

2025-02-08 Thread Holger Jeromin via rails-dev
@HolgerJeromin approved this pull request. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5631#pullrequestreview-2603997470 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Refactor direction engines and unify structure (PR #5621)

2025-02-08 Thread Tom Hughes via rails-dev
Merged #5621 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5621#event-16236180714 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. ac4f7c9c9d5fcb19697b4911ad8f1035620b61c8 Move api node version integration tests to their own class -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5590/files/ace11c8bf16284c73324e3b936bc6bfc2ac59895..ac4f7c9c9d5fcb19697b4911ad8f1

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. ace11c8bf16284c73324e3b936bc6bfc2ac59895 Move api node version integration tests to their own class -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5590/files/0901d62419646d69292a91119dbafd6cbdf2be2a..ace11c8bf16284c73324e3b936bc6

Re: [openstreetmap/openstreetmap-website] Replace var in javascript with let/const (PR #5558)

2025-02-08 Thread Tom Hughes via rails-dev
@tomhughes pushed 2 commits. 619a4b9958eebe7eddfcc8f086eefcadd0e976a6 Update eslint to prefer let/const over var f6416cd4d41c9e4c5979da4a831af2850c29569f Replace uses of var with let or const as appropriate -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/555

Re: [openstreetmap/openstreetmap-website] Add settings file for vscode derivates with eslint support (PR #5611)

2025-02-08 Thread Tom Hughes via rails-dev
Merged #5611 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5611#event-16236180715 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Repo: editor help to find eslint config file (Issue #5572)

2025-02-08 Thread Tom Hughes via rails-dev
Closed #5572 as completed via #5611. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5572#event-16236180742 You are receiving this because you are subscribed to this thread. Message ID: _

Re: [openstreetmap/openstreetmap-website] Refactor direction engines and unify structure (PR #5621)

2025-02-08 Thread Tom Hughes via rails-dev
Looks good to me, and as a bonus it makes route segment highlighting for for Valhalla! Thanks for the work. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5621#issuecomment-2645868109 You are receiving this because you are subscr

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 1 commit. 0901d62419646d69292a91119dbafd6cbdf2be2a Make api old element show paths resourceful -- View it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5590/files/80df3d063ddcfe1ea0780c65acf8f6ebee660507..0901d62419646d69292a91119dbafd6cbdf2be2a You

Re: [openstreetmap/openstreetmap-website] Add settings file for vscode derivates with eslint support (PR #5611)

2025-02-08 Thread Tom Hughes via rails-dev
Looks good to me, thanks. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5611#issuecomment-2645846186 You are receiving this because you are subscribed to this thread. Message ID: ___

[openstreetmap/openstreetmap-website] Drop eslint initialiser (PR #5631)

2025-02-08 Thread Tom Hughes via rails-dev
This was presumably required at some point but the i18n files seem to pass eslint fine now and even if they didn't it would probably be better to ignore them in the eslint config. You can view, comment on, or merge this pull request online at: https://github.com/openstreetmap/openstreetmap-web

Re: [openstreetmap/openstreetmap-website] Bump eslint from 9.19.0 to 9.20.0 (PR #5630)

2025-02-08 Thread Tom Hughes via rails-dev
Merged #5630 into master. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/5630#event-16236075393 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-

Re: [openstreetmap/openstreetmap-website] Add a page to view active blocks (PR #5524)

2025-02-08 Thread Tom Hughes via rails-dev
I think this looks fine from a code point of view - my only question is how we use this without effectively turning this URL into API that is baked into clients. Is you plan that we include this URL in the error the API returns, with the intention that clients will display that error to the use

Re: [openstreetmap/openstreetmap-website] Move html from javascript to views (Issue #5616)

2025-02-08 Thread Anton Khorev via rails-dev
That PR was marked as draft after it was ignored for months and I gave up on maintaining it. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/5616#issuecomment-2645799527 You are receiving this because you are subscribed to this

Re: [openstreetmap/openstreetmap-website] API element resources (PR #5590)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 7 commits. 6a50a5e871db2e35eeb20f5707e467fe1442583b Declare api node ways as nested resources a6e614e44e0735160c8d9ca9e3b43fd295e7e514 Declare api node relations as nested resources 2a38dca0b780b972ff93b4cae1bc37c1d476dffa Declare api way relations as nested resources f69

Re: [openstreetmap/openstreetmap-website] API element resources - nested elements (PR #5626)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 6 commits. 6a50a5e871db2e35eeb20f5707e467fe1442583b Declare api node ways as nested resources a6e614e44e0735160c8d9ca9e3b43fd295e7e514 Declare api node relations as nested resources 2a38dca0b780b972ff93b4cae1bc37c1d476dffa Declare api way relations as nested resources f69

Re: [openstreetmap/openstreetmap-website] Support versions in elements multi fetch (PR #3715)

2025-02-08 Thread Anton Khorev via rails-dev
Updated for resourceful routes. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/pull/3715#issuecomment-2645775214 You are receiving this because you are subscribed to this thread. Message ID: __

Re: [openstreetmap/openstreetmap-website] Support versions in elements multi fetch (PR #3715)

2025-02-08 Thread Anton Khorev via rails-dev
@AntonKhorev pushed 5 commits. 4b68c038a7a7ef6d369ef3e08fb849b7453b451a Test required parameter message in element multi fetch 62d1ec379efc25389138cec8922a31cf964c764d Add generic api elements controller for multi fetches b30545f10781a4e33665fd65f32ae7c552d65fe0 Add basic version support to e

Re: [openstreetmap/openstreetmap-website] Add OpenMapTiles vector map (PR #4042)

2025-02-08 Thread Minh Nguyễn via rails-dev
@1ec5 commented on this pull request. > @@ -9,6 +14,43 @@ L.extend(L.LatLngBounds.prototype, { } }); +if (OSM.MAPTILER_KEY) { + maplibregl.setRTLTextPlugin( + "https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js";, To avoid this external depend