<p>I'm seeing the same sporadic failures on recent Chrome + Firefox on Win 10. It seems to affect all layers in the layer switcher, not only the Transport Map.</p>
<pre><code>application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:9 Uncaught TypeError: Cannot read property 'options' of undefined
at e.getMapBaseLayerId (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:9)
at e.l (index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1)
at e.fire (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:5)
at e.removeLayer (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:6)
at index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1
at Array.forEach (<anonymous>)
at HTMLLIElement.<anonymous> (index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1)
at HTMLLIElement.dispatch (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:2)
at HTMLLIElement._.handle (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:2)
</code></pre>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/issues/2215#issuecomment-486159626">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLN7RYWN42JUW5GWJ3PSAWHXANCNFSM4HICIJ4Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAK2OLLG3THILDK7IJLUQODPSAWHXANCNFSM4HICIJ4Q.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"PERSON","message":"@mmd-osm in #2215: I'm seeing the same sporadic failures on recent Chrome + Firefox on Win 10. It seems to affect all layers in the layer switcher, not only the Transport Map.\r\n\r\n```\r\napplication-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:9 Uncaught TypeError: Cannot read property 'options' of undefined\r\n at e.getMapBaseLayerId (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:9)\r\n at e.l (index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1)\r\n at e.fire (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:5)\r\n at e.removeLayer (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:6)\r\n at index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1\r\n at Array.forEach (\u003canonymous\u003e)\r\n at HTMLLIElement.\u003canonymous\u003e (index-8de4fda0f10c81f0db6593a86cdcf3e1310c83de0153758674c137b4d75f0cbb.js:1)\r\n at HTMLLIElement.dispatch (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:2)\r\n at HTMLLIElement._.handle (application-599745f20aed1b16d8ce60962f4b3458793d7d0649ba3eb1139998ecbdb83231.js:2)\r\n```"}],"action":{"name":"View Issue","url":"https://github.com/openstreetmap/openstreetmap-website/issues/2215#issuecomment-486159626"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/issues/2215#issuecomment-486159626",
"url": "https://github.com/openstreetmap/openstreetmap-website/issues/2215#issuecomment-486159626",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>