<p dir="auto">We have a bunch of things named "browse". On the client side we have the <code class="notranslate">OSM.Browse</code> controller for single element pages: <a href="https://github.com/openstreetmap/openstreetmap-website/blob/ecd091c976cc8f2a3cf96fe08dc3211aad689ae2/app/assets/javascripts/index.js#L327">https://github.com/openstreetmap/openstreetmap-website/blob/ecd091c976cc8f2a3cf96fe08dc3211aad689ae2/app/assets/javascripts/index.js#L327</a></p>
<p dir="auto">But there's also <a href="https://github.com/openstreetmap/openstreetmap-website/blob/ecd091c976cc8f2a3cf96fe08dc3211aad689ae2/app/assets/javascripts/index/browse.js">browse.js</a>. It initializes the data layer:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/assets/4158490/058f1c7f-3fbc-46e1-a692-f2eb30917e75">image.png (view on web)</a></p>
<p dir="auto">This is confusing because most of controllers, for example <code class="notranslate">OSM.Directions</code>, are in their own javascript files. You'd expect to find <code class="notranslate">OSM.Browse</code> in <code class="notranslate">browse.js</code> but no, <code class="notranslate">browse.js</code> is something completely different.</p>
<p dir="auto">This pull request renames everything "browse" about <code class="notranslate">browse.js</code> and moves the file into the <code class="notranslate">layers</code> directory. And it also moves notes layer 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/4929'>https://github.com/openstreetmap/openstreetmap-website/pull/4929</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4929/commits/51d2a846ece990db7c4109ecf923ad9201c6f8e6" class="commit-link">51d2a84</a> Rename map layer javascript files</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4929/files">3 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4929/files#diff-cdc070ced1c4000efd1e28357fd26b2fd617d7fccfeae0324222231db75dd6ee">app/assets/javascripts/index.js</a>
(8)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4929/files#diff-ef1a25386d3acf1a86026dcc1edba5a3ec22fc64053d657cb1564b25129475c6">app/assets/javascripts/index/layers/data.js</a>
(8)
</li>
<li>
<strong>R</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4929/files#diff-8058f2f9c608b200098c52a855b78588f6b3aedce1b96c0fa57b706fa2d9e81c">app/assets/javascripts/index/layers/notes.js</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4929.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4929.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4929.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4929.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/4929">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLJN2TN7RPC6F52NYJLZJSUSBAVCNFSM6AAAAABKA4F24CVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3TSMZQGIYDINA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKNPIOM5SEBGW3L35TZJSUSBA5CNFSM6AAAAABKA4F24CWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHI3UKETQ.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/4929</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/4929",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4929",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>