<span style="color: transparent; display: none; height: 0; max-height: 0; max-width: 0; opacity: 0; overflow: hidden; mso-hide: all; visibility: hidden; width: 0;">
  <p dir="auto">This PR brought two problems:</p>
<ol dir="auto">
<li>When moving the map, a white flash occurs and all objects on the map are redrawn:</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8">https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8</a></p>
<ol start="2" dir="auto">
<li>Rendering slowed down. What used to occupy ~400ms now occupies ~1.3s. Hiding a data layer was previously performed on ~100ms, now ~1.5s (!)</li>
</ol>
<p dir="auto">Both problems arise due to the fact that before that the redrawing of the map was performed only once, after the completion of the removal/adding of objects to the SVG-element of the map.</p>
<p dir="auto">I can agree that the first appearance of the data layer looks beautiful. But the work with the map worsened.</p><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/5009#issuecomment-2722980833">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIHRR5UHW5O6LNBWCT2UINSDAVCNFSM6AAAAABLF5RXIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRSHE4DAOBTGM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKCKU7AGAHA5WY2AKL2UINSDA5CNFSM6AAAAABLF5RXIWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVCJVR6C.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/5009/c2722980833</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
</span>


<div style="display: flex; flex-wrap: wrap; white-space: pre-wrap; align-items: center; "><img alt="deevroman" height="20" width="20" style="border-radius:50%; margin-right: 4px;" decoding="async" src="https://avatars.githubusercontent.com/u/25708359?s=20&v=4" /><strong>deevroman</strong> left a comment <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5009#issuecomment-2722980833">(openstreetmap/openstreetmap-website#5009)</a></div>
<p dir="auto">This PR brought two problems:</p>
<ol dir="auto">
<li>When moving the map, a white flash occurs and all objects on the map are redrawn:</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8">https://github.com/user-attachments/assets/3c87c769-174c-4513-a5be-115eb9517bb8</a></p>
<ol start="2" dir="auto">
<li>Rendering slowed down. What used to occupy ~400ms now occupies ~1.3s. Hiding a data layer was previously performed on ~100ms, now ~1.5s (!)</li>
</ol>
<p dir="auto">Both problems arise due to the fact that before that the redrawing of the map was performed only once, after the completion of the removal/adding of objects to the SVG-element of the map.</p>
<p dir="auto">I can agree that the first appearance of the data layer looks beautiful. But the work with the map worsened.</p>

<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/5009#issuecomment-2722980833">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLIHRR5UHW5O6LNBWCT2UINSDAVCNFSM6AAAAABLF5RXIWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRSHE4DAOBTGM">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKCKU7AGAHA5WY2AKL2UINSDA5CNFSM6AAAAABLF5RXIWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTVCJVR6C.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/5009/c2722980833</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/5009#issuecomment-2722980833",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5009#issuecomment-2722980833",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>