From aa2b9d574fee66aab7d7698240888efbd3181543 Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Fri, 9 Feb 2018 00:54:59 +0100 Subject: [PATCH] Greyscale fix --- web/geojson.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/geojson.js b/web/geojson.js index f6d6821..7a6efc8 100644 --- a/web/geojson.js +++ b/web/geojson.js @@ -16,7 +16,7 @@ L.easyButton('fa-refresh', (btn, map) => { let colour = 100; function setColor(event) { - let tiles = document.styleSheets[3].cssRules[0]; + let tiles = document.styleSheets[4].cssRules[0]; colour = event.target.value; tiles.style.filter = `grayscale(${100-colour}%)`; }