From 2c9af4fd096486d750043b1b61207d6fcfbeec9f Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 27 Oct 2023 11:19:34 +0200 Subject: [PATCH] Hide button as well (#1878) --- src/controls/legend.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controls/legend.js b/src/controls/legend.js index cb8e68f55..f47d9c3f3 100644 --- a/src/controls/legend.js +++ b/src/controls/legend.js @@ -605,9 +605,11 @@ const Legend = function Legend(options = {}) { }, hide() { document.getElementById(mainContainerCmp.getId()).classList.add('hidden'); + document.getElementById(layerButton.getId()).classList.add('hidden'); }, unhide() { document.getElementById(mainContainerCmp.getId()).classList.remove('hidden'); + document.getElementById(layerButton.getId()).classList.remove('hidden'); }, onRender() { const layerControlCmps = [];