<p dir="auto">Look at data layer. Notice that everything is blue:<br>
<a href="https://github.com/user-attachments/assets/219698eb-5124-44a7-b133-c12bf8c3e8f0">image.png (view on web)</a></p>
<p dir="auto">Now look at the <code class="notranslate">setStyle</code> call that I remove in this PR. Notice that the colors are supposed to be black, red, green. It's broken since <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/openstreetmap/openstreetmap-website/commit/5e9ab5bc5edb63b7ab7719fa989a18f52e3637a2/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/commit/5e9ab5bc5edb63b7ab7719fa989a18f52e3637a2"><tt>5e9ab5b</tt></a>, but I'm not fixing it because those colors don't look very well over the tiles and everyone probably got used to blue.</p>
<p dir="auto">The argument to <code class="notranslate">setStyle</code> is invalid; and when used on feature group layer, <code class="notranslate">setStyle</code> should be called after adding the geometry.<br>
<a href="https://leafletjs.com/reference.html#featuregroup-setstyle" rel="nofollow">https://leafletjs.com/reference.html#featuregroup-setstyle</a></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/5892'>https://github.com/openstreetmap/openstreetmap-website/pull/5892</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5892/commits/bf659fcd42f9d68f9fb4187d880fa12f5690ebee" class="commit-link">bf659fc</a> Remove invalid setStyle from data layer</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5892/files">1 file</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5892/files#diff-ef1a25386d3acf1a86026dcc1edba5a3ec22fc64053d657cb1564b25129475c6">app/assets/javascripts/index/layers/data.js</a>
(15)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5892.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5892.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5892.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5892.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/5892">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMAC7KAVAIO4ZTFHO32X7ZKHAVCNFSM6AAAAAB2QT5E66VHI2DSMVQWIX3LMV43ASLTON2WKOZSHE3TIMRYGYZDKNA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKA6VJPDUZDPDFS23D2X7ZKHA5CNFSM6AAAAAB2QT5E66WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHLCSABVY.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/5892</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/5892",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5892",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>