diff --git a/src/essence/Tools/Layers/LayersTool.js b/src/essence/Tools/Layers/LayersTool.js index e941d040..7236b2d2 100644 --- a/src/essence/Tools/Layers/LayersTool.js +++ b/src/essence/Tools/Layers/LayersTool.js @@ -600,6 +600,13 @@ function interfaceWithMMGIS(fromInit) { } async function toggleLayer(checkbox) { + if (checkbox.hasClass('loading')) { + console.warn( + 'LayersTool - Cannot toggle layer that is still loading.' + ) + return + } + let li = checkbox.parent().parent().parent() if (li.attr('type') !== 'header') { const layerName = li.attr('name')