<p></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mmd-osm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mmd-osm">@mmd-osm</a></p>
<blockquote>
<p dir="auto">Besides, there may be some timing issue in the current code, as the behavior is not 100% reproducible for me, even today. Sometimes the map layer changes along with the share link, in other cases, the old layer is still shown.</p>
</blockquote>
<p dir="auto">I think I found a way to reproduce this (If you meant it):</p>
<ol dir="auto">
<li>Open <a href="https://www.openstreetmap.org/#map=19/60.008946/30.217791&layers=Y" rel="nofollow">https://www.openstreetmap.org/#map=19/60.008946/30.217791&layers=Y</a></li>
<li>Change Y -> H</li>
<li>Change H -> Y (the layer has not changed)</li>
</ol>
<p dir="auto"><a href="https://github.com/user-attachments/assets/31a836d2-405e-4c17-9877-c7544d6d879d">https://github.com/user-attachments/assets/31a836d2-405e-4c17-9877-c7544d6d879d</a></p>

<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/5474#issuecomment-2615391698">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLMRBC5Q2TKBWG5UQY32MYD73AVCNFSM6AAAAABUVSY6FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMMJVGM4TCNRZHA">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLNNQR3R5FDRRR3ZMVL2MYD73A5CNFSM6AAAAABUVSY6FWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU34O25E.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/5474/c2615391698</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/5474#issuecomment-2615391698",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5474#issuecomment-2615391698",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>