<p dir="auto"><span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #4081.">Fixes</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1796982758" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4081" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4081/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4081">#4081</a> on <code class="notranslate">/changeset/:id</code> pages.</p>
<p dir="auto">Previously changeset bbox was loaded using <code class="notranslate">L.OSM.DataLayer</code>. That requied additional http request. Also <code class="notranslate">L.OSM.DataLayer</code> assumed that all changesets have bounding boxes which is not true.</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/5471'>https://github.com/openstreetmap/openstreetmap-website/pull/5471</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/commits/b816f5b27e8d803294e333442b61d45aa4ce1eeb" class="commit-link">b816f5b</a>  Remove 'center' argument of addChangeset()</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/commits/bb4720f09b42749746151dae1d0348f062696574" class="commit-link">bb4720f</a>  Move changeset data to a helper</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/commits/0b0569f150afc4bfc3acefbdc477f50eb56ffeae" class="commit-link">0b0569f</a>  Write details attribute to changeset page</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/commits/68c37f8f29440f0464ec1832b9beee96605c0c30" class="commit-link">68c37f8</a>  Use details attribute to render changeset bounding box</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files">5 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files#diff-e8b0bd562b0aaead17e44d572d51fcc72fa846c7b54ae5df2dc6434fb80834dc">app/assets/javascripts/index/changeset.js</a>
    (17)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
    (25)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files#diff-bc4d52553ca058396b0e614d583f5a157ea848b90d792eb1c872f4233b0fe5db">app/helpers/changesets_helper.rb</a>
    (16)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files#diff-8c20483714803e1b221a61b2af55ca1cf6f488ec46cfefe331013ff0fc8c42a7">app/views/changesets/_changeset.html.erb</a>
    (14)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5471/files#diff-9a5f2cb48e3a30fd0197d016bd900f26d7183d6714f3a747613c9cbe4a9c8f9d">app/views/changesets/show.html.erb</a>
    (4)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5471.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5471.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5471.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5471.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/5471">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNZHZ4DFGHU5APRYXL2JFDNPAVCNFSM6AAAAABUUGTMFCVHI2DSMVQWIX3LMV43ASLTON2WKOZSG43DSMZRG4YDSOA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLI4FD5JY33YP7TY2J32JFDNPA5CNFSM6AAAAABUUGTMFCWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKKEDM5I.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/5471</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/5471",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5471",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>