[openstreetmap/openstreetmap-website] Restrict building editing until zoom level 19 (PR #6574)
Arif Faisal
notifications at github.com
Mon Dec 1 09:59:18 UTC 2025
## Summary
Adds a zoom-level restriction for building editing in the iD editor. When the user is zoomed out (typically <19), building features are auto-hidden via the existing rendererFeatures culling system. Roads remain visible and editable at all zoom levels.
## What’s Changed
- Uses the iD renderer’s feature rules to restrict building visibility when feature density is high.
- Behavior:
- zoom < 19 → buildings hidden & non-editable
- zoom ≥ 19 → buildings visible & editable
## Why
- Improves editing precision for buildings.
- Reduces accidental building edits when zoomed out.
- Aligns editable behavior with intended UX for detailed geometry.
## Testing
- Zoomed out below 19: buildings disappear, roads still editable.
- Zoomed in to ≥19: buildings appear and are editable again.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6574
-- Commit Summary --
* formatted code
* formatted code
* Restrict building editing until zoom 19
-- File Changes --
M vendor/assets/iD/iD.js (131184)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6574.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6574.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6574
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6574 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20251201/8cd7e745/attachment.htm>
More information about the rails-dev
mailing list