From e4cb1ff9e7df5b2aa9d2f6b0f4f6d5f0ef7208e9 Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 6 Dec 2024 13:25:16 +0100 Subject: [PATCH] Update overlays.js --- src/controls/legend/overlays.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls/legend/overlays.js b/src/controls/legend/overlays.js index e204f0c93..575ce70f4 100644 --- a/src/controls/legend/overlays.js +++ b/src/controls/legend/overlays.js @@ -134,7 +134,7 @@ const Overlays = function Overlays(options) { // Hide overlays container when empty const onChangeLayer = function onChangeLayer() { const nrOverlays = readOverlays().length; - if(nrOverlays === 0){ + if (nrOverlays === 0) { document.getElementById(this.getId()).classList.add('hidden'); } else { document.getElementById(this.getId()).classList.remove('hidden');