<p dir="auto">Continues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2770179737" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/5473" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/5473/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/5473">#5473</a> by fixing the rendering.</p>
<p dir="auto">When anything is added to the map, its longitude could be as well (the original longitude) + n * 360. n is an integer and usually it's 0 but that doesn't work when looking at the map near the antimeridian. Here I'm picking such n for each changeset bbox that it's going to be at the closest location to the map view center.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/6607ac59-e348-4ae8-a817-aebf07465639">image.png (view on web)</a></p>
<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/5903'>https://github.com/openstreetmap/openstreetmap-website/pull/5903</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/commits/a58af9be38745981060e9c4d37ad315e0344cc59" class="commit-link">a58af9b</a> Support unwrapped bbox values in changeset history queries</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/commits/d0e1ab2ff9a4170688486b1095fc40f120bb7b15" class="commit-link">d0e1ab2</a> Add history changesets layer module</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/commits/c8e00181c3f6ca16c5129f7dfe5072b72bd3ece4" class="commit-link">c8e0018</a> Rename changesets layer constant</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/commits/9e6d50877fc9f61d5b54c218b8acc8277456e72e" class="commit-link">9e6d508</a> Rename map listeners on history page</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/commits/523fdd488d7cf3f837e65fb18d80ac1742fa1a48" class="commit-link">523fdd4</a> Render changesets at locations closest to map view center</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files">5 files</a>)</p>
<ul>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files#diff-dc12b10289b1608e5deb501050928dc5db8564cb2e09e01de68e949662123404">app/assets/javascripts/index/history-changesets-layer.js</a>
(76)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files#diff-25cab16df4a58e0c8e53d0a0e70d9bbf28ef3beb9e6bf1208234fdeed7515392">app/assets/javascripts/index/history.js</a>
(86)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files#diff-cf3fe9dc357f802fd9155582ffc8c6f71185065267991a2135323ad2d044b4f3">app/controllers/changesets_controller.rb</a>
(32)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files#diff-6cdb8b8fa44e422834c4815943a8e4933d6d09e4687f338d007daeff1a90daa9">test/controllers/changesets_controller_test.rb</a>
(104)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5903/files#diff-ca76ddfd495be1ab96863518b57d1e0b49d06c99429adb2bbd6001692d12073b">test/system/history_test.rb</a>
(28)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5903.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5903.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5903.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5903.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/5903">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLM7SV4HXR7JXOREOAL2YJZF7AVCNFSM6AAAAAB2TRQS3SVHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3TMNZYG44DCMI">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOCGGLZVWBV4ANF27L2YJZF7A5CNFSM6AAAAAB2TRQS3SWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLC3RNMM.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/5903</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/5903",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5903",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>