A layer for Leaflet.js to display UK Ordnance Survey and Irish Grids, intended for use with the amateur radio "Worked All Britain" and "Worked All Ireland" awards schemes. https://misc.ianrenton.com/Leaflet.WorkedAllBritainIreland/examples/index.html
Find a file
2025-11-29 13:14:13 +00:00
.idea Add rest of Ireland 2025-11-29 13:03:52 +00:00
docs Add rest of Ireland 2025-11-29 13:03:52 +00:00
examples Add rest of Ireland 2025-11-29 13:03:52 +00:00
modules/geodesy Include licence information for Geodesy library mods 2025-06-07 17:07:12 +01:00
L.WorkedAllBritainIreland.js Improve todo for next time 2025-11-29 13:14:13 +00:00
LICENSE Initial commit 2025-06-07 14:12:43 +01:00
README.md Add rest of Ireland 2025-11-29 13:03:52 +00:00

Leaflet.WorkedAllBritainIreland

A layer for Leaflet.js to display UK Ordnance Survey and Irish Grids, intended for use with the amateur radio "Worked All Britain" and "Worked All Ireland" awards schemes.

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.WorkedAllBritainIreland/L.WorkedAllBritainIreland.js"></script>

Note that for WAB and WAI, the national borders (including England/Wales and England/Scotland) are important. For example, NT95 (England) and NT95 (Scotland) are counted separately. This layer does not attempt to capture any borders, only the grid squares themselves.

Features

  • Britain, Ireland (North & South) 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

Screenshot Screenshot Screenshot Screenshot

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 & Ireland 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.