[openstreetmap/openstreetmap-website] Disable boundaries in iD by default (Issue #4514)

Minh Nguyễn notifications at github.com
Sun Feb 11 16:14:11 UTC 2024


Boundaries can be difficult to edit correctly. Often a new user ends up munging a boundary by accident, especially if it is connected to another feature.

The standalone version of iD addresses this usability issue by hiding the boundary layer by default if no `disable_features` parameter is included in the URL hash. Users who feel confident editing the boundary layer can enable it in the Map Data panel, and iD will remember the setting across sessions.

https://github.com/openstreetmap/iD/blob/70a117a38cfaf5518d0099adf70816bc5d196138/dist/index.html#L49-L53

The iD project has received requests for the instance embedded on osm.org to do the same: openstreetmap/iD#8454. However, since the need to disable boundaries is specific to an OSM environment where new users frequent, the least risky, most straightforward implementation would be in this repository, either right after this statement:

https://github.com/openstreetmap/openstreetmap-website/blob/56622201d3012eddb1efba7baf78d8aeffc336b6/app/assets/javascripts/id.js#L23-L29

or as an `else` right here, where the application translates its own `disabled_features` parameter into one that iD understands:

https://github.com/openstreetmap/openstreetmap-website/blob/56622201d3012eddb1efba7baf78d8aeffc336b6/app/assets/javascripts/edit/id.js.erb#L26

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

Message ID: <openstreetmap/openstreetmap-website/issues/4514 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240211/4e07a8b7/attachment.htm>


More information about the rails-dev mailing list