.idea | ||
docs | ||
examples | ||
modules/geodesy | ||
L.WorkedAllBritain.js | ||
LICENSE | ||
README.md |
Leaflet.WorkedAllBritain
A layer for Leaflet.js to display "Worked All Britain" grids.
Used in some of my amateur radio mapping tools such as Field Spotter and the QSO Map Tool.
You can use this live, direct from wherever you serve your Leaflet.js project, by adding the following to your code:
<script src="https://misc.ianrenton.com/Leaflet.WorkedAllBritain/L.WorkedAllBritain.js"></script>
Features
- Britain, Northern Ireland and Channel Islands covered
- Detail level based on zoom
- Avoids rendering off-screen small squares for efficient CPU/memory use
- Deconfliction of small squares around overlapping regions
Third-Party Libraries & Thanks
The project contains self-hosted modified copies of classes from Chris Veness' Geodesy library, located in the /modules/geodesy
directory. These have been modified allow the "OV" square for OSGB, to support the Irish grid system, and add parsing of Channel Islands grid references, for use with the Worked All Britain squares layer. This code is subject to the MIT licence. It is used with many thanks.
Thanks are also due to HA8TKS for their Maidenhead, ITU & CQ zone libraries, which I used as an example of how to create a Leaflet layer class.