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');