[openstreetmap/openstreetmap-website] Sync more hash-url-params for iD (#3031)

Tobias notifications at github.com
Sat Jan 2 19:50:03 UTC 2021


This is the corresponding issue to https://github.com/openstreetmap/iD/issues/8114 in the iD Repo. This the solution will – as far as I understand – be part of this repos code, the topic should (also) be discussed here IMO.

I looked into this issue and will create a draft-PR after this Issue.

Short summary of the issue:

iD has 14 url params (+ the location/zoom params) that allow to configure the editor via URL.
Those params work fine to initialise iD on osm.org but get removed right after the editor loaded.
(This is https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/edit/id.js.erb#L23-L36)
Changes in the editor config are not represented in the hash URL on osm.org.
It is therefore not possible to share the configuration of an iD setup (apart from location+zoom) via URL.

Ideal solution:

The iD Dev-preview shows a different behaviour: Changes to the editor config are represented in the hash-URL.
Ideally, this behaviour is also possible for OSM.org (where we need to work around the iframe-setup).


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/3031
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210102/45d9fc23/attachment.htm>


More information about the rails-dev mailing list