<p dir="auto">Building on the changes from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3107695827" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/6076" data-hovercard-type="pull_request" data-hovercard-url="/openstreetmap/openstreetmap-website/pull/6076/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/pull/6076">#6076</a> that didn't involve ripping out leaflet for consistency and instead prepare the bounds explicitly.<br>
And another few things that caught my eye there.</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/6102'>https://github.com/openstreetmap/openstreetmap-website/pull/6102</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/e61ebc0396140e595bf4ea8c9464c52299d11e89" class="commit-link">e61ebc0</a> Reuse error printing</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/ad293c09b905112cae45e0dd3473fb2b5b8e8e4e" class="commit-link">ad293c0</a> Fix bounding box coordinates in OSM.location test</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/918ef5e77d2b476aca97034d832901faa0943943" class="commit-link">918ef5e</a> Remove unused distance function and its tests</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/be043cb967133794bb016df9f8440f3298a013e6" class="commit-link">be043cb</a> Drop unnecessary custom wrap function</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/16d4f8587e40b29543e3bb8b0f1d36d4b8edd081" class="commit-link">16d4f85</a> Restructure featureGeometry for clarity</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/192614abbf2da56bcce7898673f5ae9abcef221e" class="commit-link">192614a</a> Clean up overpass merge function</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/ff51b95b4b1328818c091c46ed38861049de98ca" class="commit-link">ff51b95</a> Remove unused runQuery parameters</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/fbef86f607207ec1b26837220518faf4a45032b3" class="commit-link">fbef86f</a> Inline latlng variable</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/7e7883bb76a9bdda02356a83bf7460457dff1a57" class="commit-link">7e7883b</a> Simplify overpass query building</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/671311cc61a0ba53676cdc639d4ac249e6fd09c5" class="commit-link">671311c</a> Use combined latlng parameter</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/commits/8d34cecc92476486a089e04bf3d52d18aa95fcd5" class="commit-link">8d34cec</a> Ensure Overpass bounds compatibility</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/files">4 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/files#diff-8275a6df0995b2af17f0b52a0dfe5a00f8b09d9d51b89516e2612a3faa9d8c0f">app/assets/javascripts/index/query.js</a>
(97)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/files#diff-f060eef487077b042f45b3a12e7a2cbd54a446f8c744cdb98405a1295430e8b9">app/assets/javascripts/leaflet.map.js</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/files#diff-a9b88a8a3644f944b9bd54361da588c69fa6a210cf7327194c17895a8ad2b0d6">app/assets/javascripts/osm.js.erb</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6102/files#diff-94f48fb5b77f2e9e4d66ccbe5276b249c97182801b5213c866b744316d737a9f">test/javascripts/osm_test.js</a>
(12)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6102.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/6102.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/6102.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/6102.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/6102">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLNFGIBFHU3W5UFA55L3DVCVDAVCNFSM6AAAAAB7LDXY7KVHI2DSMVQWIX3LMV43ASLTON2WKOZTGE2DOMZSHAZTIMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLLPI77HLT3IEB3CS233DVCVDA5CNFSM6AAAAAB7LDXY7KWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLXGDLK4.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/6102</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/6102",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6102",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>