[openstreetmap/openstreetmap-website] Add profile location (PR #5302)
David Tsiklauri
notifications at github.com
Wed Mar 5 08:02:17 UTC 2025
@nertc commented on this pull request.
> + return;
+ }
+
+ const geocodeUrl = "/geocoder/search_osm_nominatim_reverse";
+ const params = {
+ format: "json",
+ lat,
+ lon,
+ zoom: 3
+ };
+
+ if (locationInput.request) {
+ locationInput.request.abort();
+ }
+
+ locationInput.request = $.ajax({
Code was changed to use `fetch` instead of `$.ajax` for the calls from font-end. To handle cancellation of the call, `AbortController` was used.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5302#discussion_r1980884699
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/5302/review/2660260671 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250305/b564a156/attachment.htm>
More information about the rails-dev
mailing list