[openstreetmap/openstreetmap-website] gpx parameter in editor URL causes Application error (Issue #3540)

Nikhil VJ notifications at github.com
Tue May 3 00:47:03 UTC 2022


Hi, thanks for this clarification, but this leaves a question of how does Tasking-manager do it.

When using [tasking-manager](https://github.com/hotosm/tasking-manager) , the tasks with their custom boundaries that project admins create and which aren't `trace object ID`s internal to OSM : those appear as custom map data overlay on the OSM iD Editor. See screenshot:
![OSM-editor-custom-data-overlay](https://user-images.githubusercontent.com/9089552/166352213-269ac66f-afbc-4289-aa8d-67339ad78b0d.png)

Present version of tasking manager is opening an instance within the page (I think it's an iFrame but not sure), but previous version used to spawn in a new tab, and that was the  https://www.openstreetmap.org/edit... url opened and it had the task boundary pre-loaded. I don't think all those tasking manager instances out there - HOT, TeachOSM etc - are adding their custom task boundaries to OSM as gps traces that they would have `trace object ID`s of each, are they? How are they doing it then?

The documentation makes it clear that **gpx** is a URL to a third party site: https://github.com/openstreetmap/iD/blob/develop/API.md  for standalone iD instance:

> gpx - A custom URL for loading a gpx track. Specifying a gpx parameter will automatically enable the gpx layer for display.
Example: gpx=https://tasks.hotosm.org/project/592/task/16.gpx

And then under "iD on openstreetmap.org (Rails Port)" heading it says:
> gpx - same as standalone

This is in direct conflict with @tomhughes 's statement :
> For the record the gpx parameter to that URL expects a trace ID for our site, not some random URL to a third party site.

So can you guys maybe dig a little and confirm this? In that case the documentation over there needs to be changed.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3540#issuecomment-1115507241
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/3540/1115507241 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220502/f6b7900d/attachment.htm>


More information about the rails-dev mailing list