<p dir="auto">Currently data layer loading is only aborted when a new request starts. It's possible to enable data layer, start a long load, disable data layer, and then after a while receive a warning about too much data despite the layer is already disabled.</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/5575'>https://github.com/openstreetmap/openstreetmap-website/pull/5575</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5575/commits/8a1a1e120c75b588ecf57c9a0d2c99eaa5628350" class="commit-link">8a1a1e1</a>  Abort loading when data layer is removed</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5575/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5575/files#diff-ef1a25386d3acf1a86026dcc1edba5a3ec22fc64053d657cb1564b25129475c6">app/assets/javascripts/index/layers/data.js</a>
    (8)
  </li>
</ul>

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