From 040ac27f3b7b9f00dfd55bebc5de1276b523951b Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 20 Oct 2023 00:29:15 +0200 Subject: [PATCH] Draw only needed grids --- assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js b/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js index 49639eb3..b391d269 100644 --- a/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js +++ b/assets/js/leaflet/L.MaidenheadColouredGridmasterMap.js @@ -115,7 +115,7 @@ L.Maidenhead = L.LayerGroup.extend({ } } // Added this to print fields and field name, while still showing worked/confirmed gridsquares - unit = 1; + unit = 10; var left = Math.floor(w / (unit * 2)) * (unit * 2); var right = Math.ceil(e / (unit * 2)) * (unit * 2); var top = Math.ceil(n / unit) * unit;