<p dir="auto">This PR improves the visualization and interactivity of search results in the sidebar and map.</p>
<ul dir="auto">
<li>Search result entries now have permanent map markers (instead of hover-only).</li>
<li>Each marker is assigned a unique color based on the golden angle<sup><a href="#user-content-fn-1-daa0cb057d42e0af98039ea8e1ea767c" id="user-content-fnref-1-daa0cb057d42e0af98039ea8e1ea767c" data-footnote-ref="" aria-describedby="footnote-label">1</a></sup>, improving distinction even with many results.</li>
<li>List entries visually match their corresponding markers via a colored border (<code class="notranslate">--marker-color</code>).</li>
<li>Hovering over a list entry highlights the marker, and vice versa.</li>
<li>Clicking a marker forwards that to the associated list entry.</li>
<li>Refactored fetch logic into a reusable <code class="notranslate">fetchReplace()</code> function.</li>
</ul>
<p dir="auto">This touches a multitude of issues, see the list at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54446296" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/872" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/872/hovercard?comment_id=2588598803&comment_type=issue_comment" href="https://github.com/openstreetmap/openstreetmap-website/issues/872#issuecomment-2588598803">#872 (comment)</a>.</p>
<p dir="auto"><a href="https://github.com/user-attachments/assets/b9af00e5-2968-4d0e-8bc7-4f075853edf7">https://github.com/user-attachments/assets/b9af00e5-2968-4d0e-8bc7-4f075853edf7</a></p>
<section data-footnotes="" class="footnotes"><h2 id="footnote-label" class="sr-only" dir="auto">Footnotes</h2>
<ol dir="auto">
<li id="user-content-fn-1-daa0cb057d42e0af98039ea8e1ea767c">
<p dir="auto">Why this way? This approach scales better for arbitrary result counts. The golden angle ensures that hues are distributed evenly and only begin to visually converge after over 20 entries. <a href="#user-content-fnref-1-daa0cb057d42e0af98039ea8e1ea767c" data-footnote-backref="" aria-label="Back to reference 1" class="data-footnote-backref">↩</a></p>
</li>
</ol>
</section>

<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/6235'>https://github.com/openstreetmap/openstreetmap-website/pull/6235</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6235/commits/819b657c7c59f1eb7a432e3649e1139a222356e6" class="commit-link">819b657</a>  Reuse search results fetcher</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6235/commits/f4bdb79b52f7bf6ea6df3e15592c93e4d190854e" class="commit-link">f4bdb79</a>  Make search show multiple markers</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6235/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6235/files#diff-8859067d4860f7b3d870155d8af8c81e89fd7c66cd2ebb58bd42cf31005c3c27">app/assets/javascripts/index/search.js</a>
    (58)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6235/files#diff-e86a39e6d0b163f152db8843fc7d647a3f5d648de4a74f1732bef4474b6e5bc8">app/assets/stylesheets/common.scss</a>
    (11)
  </li>
</ul>

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