## 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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to