Draw only needed grids

This commit is contained in:
phl0
2023-10-20 00:29:15 +02:00
parent 51707840de
commit 040ac27f3b

View File

@@ -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;