<h2 dir="auto">Summary</h2>
<p dir="auto">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.</p>
<h2 dir="auto">What’s Changed</h2>
<ul dir="auto">
<li>Uses the iD renderer’s feature rules to restrict building visibility when feature density is high.</li>
<li>Behavior:
<ul dir="auto">
<li>zoom < 19 → buildings hidden & non-editable</li>
<li>zoom ≥ 19 → buildings visible & editable</li>
</ul>
</li>
</ul>
<h2 dir="auto">Why</h2>
<ul dir="auto">
<li>Improves editing precision for buildings.</li>
<li>Reduces accidental building edits when zoomed out.</li>
<li>Aligns editable behavior with intended UX for detailed geometry.</li>
</ul>
<h2 dir="auto">Testing</h2>
<ul dir="auto">
<li>Zoomed out below 19: buildings disappear, roads still editable.</li>
<li>Zoomed in to ≥19: buildings appear and are editable again.</li>
</ul>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/openstreetmap/openstreetmap-website/pull/6574'>https://github.com/openstreetmap/openstreetmap-website/pull/6574</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574/commits/1f33de2bb0e36a497153cda55246bb94f3d13468" class="commit-link">1f33de2</a> formatted code</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574/commits/034a06a249c3a5dc7e6b7227444e752dd34b6fdf" class="commit-link">034a06a</a> formatted code</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574/commits/d57a67795be018d458eb8a0d8d9d7999e304cbc6" class="commit-link">d57a677</a> Restrict building editing until zoom 19</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574/files#diff-7bfbfa174a52a0444c509d578ea4e570a466ec11dd2c45493019eab72aeaa700">vendor/assets/iD/iD.js</a>
(131184)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6574.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6574.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6574.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6574.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6574">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLO5GDPJ5EWLI7CBA4337QGPNAVCNFSM6AAAAACNVAF7IOVHI2DSMVQWIX3LMV43ASLTON2WKOZTGY4DAMRQHE4TGOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLN2FG4JRTP7M2KCY3T37QGPNA5CNFSM6AAAAACNVAF7IOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHNWW4MCI.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6574</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6574",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6574",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>