Prepare for misc.ianrenton.com going offline

This commit is contained in:
Ian Renton
2026-08-07 18:46:57 +01:00
parent f68b244e38
commit 4f9ec65d9a
5 changed files with 1112 additions and 3 deletions
+3 -3
View File
@@ -16,7 +16,7 @@ L.WorkedAllBritainIreland = L.LayerGroup.extend({
// Workaround to load the geodesy modules in non-modular code. Once we have loaded all three modules, trigger a
// first draw.
import("https://misc.ianrenton.com/Leaflet.WorkedAllBritainIreland/modules/geodesy/osgridref.js")
import(new URL('./modules/geodesy/osgridref.js', import.meta.url).href)
.then(module => {
this._osGridLibrary = module;
if (this._ieGridLibrary && this._utmLibrary) {
@@ -27,7 +27,7 @@ L.WorkedAllBritainIreland = L.LayerGroup.extend({
console.log("Error loading OS Grid Ref library, GB WAB squares may not be available.");
console.log(error);
});
import("https://misc.ianrenton.com/Leaflet.WorkedAllBritainIreland/modules/geodesy/iegridref.js")
import(new URL('./modules/geodesy/iegridref.js', import.meta.url).href)
.then(module => {
this._ieGridLibrary = module;
if (this._osGridLibrary && this._utmLibrary) {
@@ -38,7 +38,7 @@ L.WorkedAllBritainIreland = L.LayerGroup.extend({
console.log("Error loading IE Grid Ref library, NI WAB squares may not be available.");
console.log(error);
});
import("https://misc.ianrenton.com/Leaflet.WorkedAllBritainIreland/modules/geodesy/utm_ci.js")
import(new URL('./modules/geodesy/utm_ci.js', import.meta.url).href)
.then(module => {
this._utmLibrary = module;
if (this._osGridLibrary && this._ieGridLibrary) {