<p dir="auto">This hopefully fixes the vector tile attribution issues.</p>
<p dir="auto">The second part is somewhat gross but hard to avoid until we can get leaflet-maplibre-gl fixed because it registers a load callback on the underling GL map that will call <code class="notranslate">getAttribution</code> and add the result to the attribution control and then never remove it again.</p>
<p dir="auto">To avoid that we temporarily replace <code class="notranslate">getAttribution</code> with a dummy version that it will capture for it's callback...</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/6236'>https://github.com/openstreetmap/openstreetmap-website/pull/6236</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6236/commits/497231dfcf7e5dee1844a42020ccd81740066b3c" class="commit-link">497231d</a>  Force vector layers to use our custom attribution</li>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/6236/commits/3643b65cf2fd12acefd156e6a2414719786f47be" class="commit-link">3643b65</a>  Hide getAttribution function from leaflet-maplibre-gl</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/6236/files">2 files</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6236/files#diff-95baaca40ef9c6e3a2f6d3226c421512b89c92c867846d7b081130117fd8d6c1">app/assets/javascripts/leaflet.maptiler.js</a>
    (8)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6236/files#diff-3d504f4ebcf488a4b6184f42b343d88df1587057c2e0467e73ea9986c720692c">app/assets/javascripts/leaflet.shortbread.js</a>
    (8)
  </li>
</ul>

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