<p></p>
<h3 dir="auto">URL</h3>
<p dir="auto"><a href="https://www.openstreetmap.org/history#map=1/0/0" rel="nofollow">https://www.openstreetmap.org/history#map=1/0/0</a></p>
<h3 dir="auto">How to reproduce the issue?</h3>
<p dir="auto">To reproduce issue:</p>
<ol dir="auto">
<li>Got to OSM website</li>
<li>From the menu in top-left corner, select "History" (Ajalugu in attached screenshot)</li>
<li>Zoom out or adjust width of browser window until all continents are visible at least twice</li>
<li>(Optional): To make effects of the bug more clear, make sure that longitude of both edges of the map are approximately same</li>
</ol>
<p dir="auto">Issue: Only changesets from that very narrow gap are shown.<br>
Expected behaviour: All changesets around the world are shown.</p>
<h3 dir="auto">Screenshot(s) or anything else?</h3>
<p dir="auto">The bug is caused by Leaflet's method <code>.wrap()</code> on <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/app/assets/javascripts/index/history.js#L62">line 62 of history.js</a>. The easiest fix is to simply remove said method because it's used for offsetting user's bbox of current viewport into valid latitude/longitude. However, function that processes the passed parameter in <a href="https://github.com/openstreetmap/openstreetmap-website/blob/master/app/controllers/changesets_controller.rb#L90-L92">changesets_controller.rb</a> as of now uses simple number comparison to filter changesets and don't mind unusual bbox parameters. Bit more sophisticated fix is to add client-side bbox validation where too large bboxes would be clipped from -180/180 meridian. But bigger question is that since this issue was introduced as <a href="https://github.com/openstreetmap/openstreetmap-website/commit/8fe5dbb92cec25467f1f1c23f65113c5e956a7ff">single commit</a> 8 years ago and not fixed since, is this a bug or an intentional feature to reduce server load?</p>
<p dir="auto">I came across this bug while working on PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1099776702" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/3417" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/3417/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/3417">#3417</a> and had actually already fixed it there using the lazy method, but wanted to clarify if wrapping was intentional or it was added by accident.</p>
<p dir="auto">Screenshot with sample of the issue (loaded bit more changesets than the default 20 to show the trend). Note the map boundaries.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/22601238/149625106-1abe109f-9dd5-4557-a3ad-445f83a93feb.png"><img src="https://user-images.githubusercontent.com/22601238/149625106-1abe109f-9dd5-4557-a3ad-445f83a93feb.png" alt="pilt" style="max-width: 100%;"></a></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/issues/3423">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMH7KHLFX7YV4QQ5ILUWGAVNANCNFSM5MBBYDKA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLMOLG42YPGX4KZITW3UWGAVNA5CNFSM5MBBYDKKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4QOY6GZA.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/issues/3423</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/issues/3423",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/3423",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>