[openstreetmap/openstreetmap-website] Transition more requests to fetch (PR #5669)

Marwin Hochfelsner notifications at github.com
Thu Feb 13 20:17:18 UTC 2025


@hlfan commented on this pull request.



> @@ -71,30 +71,28 @@ OSM.initializeNotesLayer = function (map) {
     var size = bounds.getSize();
 
     if (size <= OSM.MAX_NOTE_REQUEST_AREA) {
-      var url = "/api/" + OSM.API_VERSION + "/notes.json?bbox=" + bounds.toBBoxString();
+      var url = "/api/" + OSM.API_VERSION + "/notes?bbox=" + bounds.toBBoxString();

Wanted to have the same strategy for /map and /notes, I can swap the header for the extension for both.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5669#discussion_r1955158559
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5669/review/2616127322 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250213/010acdaa/attachment.htm>


More information about the rails-dev mailing list