[openstreetmap/openstreetmap-website] Use overpass_url setting instead of hardcoded overpass-api.de in export (PR #7208)

Marwin Hochfelsner notifications at github.com
Sun Jul 5 16:41:22 UTC 2026


@hlfan commented on this pull request.



> @@ -68,7 +68,7 @@ export default function (map) {
     $("#maxlat").val(ne.lat);
 
     $("#export_overpass").attr("href",
-                               `https://overpass-api.de/api/map?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`);
+                               `${OSM.OVERPASS_URL.replace(/\/interpreter$/, "/map")}?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`);

I think with #7142 we can change this update to not require the path in JS at all:

```javascript
$("#export_overpass")[0].search = `?bbox=${sw.lng},${sw.lat},${ne.lng},${ne.lat}`;
```

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

Message ID: <openstreetmap/openstreetmap-website/pull/7208/review/4631632518 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260705/da618d6f/attachment.htm>


More information about the rails-dev mailing list