From 8be120479ed33f947d1c6f6a802bba5d624b0a9d Mon Sep 17 00:00:00 2001 From: rayaberova7 Date: Wed, 23 Oct 2024 08:26:51 +0000 Subject: [PATCH] coquille checkbox unique --- src/mayotte.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mayotte.md b/src/mayotte.md index 9813158..cf02527 100644 --- a/src/mayotte.md +++ b/src/mayotte.md @@ -414,9 +414,9 @@ const osmLayerCheckbox = document.getElementById('osmLayer'); const geojsonSelectChoice = document.getElementById('geojsonSelect'); const pleiadesLayer2023Checkbox = document.getElementById('pleiadesLayer2023'); -osmLayerCheckbox.addEventListener('change', updateLayers('osmLayer')); -geojsonSelectChoice.addEventListener('change', updateLayers('')); -pleiadesLayer2023Checkbox.addEventListener('change', updateLayers('pleiadesLayer2023')); +osmLayerCheckbox.addEventListener('change', () => updateLayers('osmLayer')); +geojsonSelectChoice.addEventListener('change', () => updateLayers('')); +pleiadesLayer2023Checkbox.addEventListener('change', () => updateLayers('pleiadesLayer2023')); ``` ```js