Merge pull request #49 from AndreasK79/map_maidenhead_overlay

[Map] Added maidenhead overlay for WAS and WAJA map
This commit is contained in:
Andreas Kristiansen
2024-01-30 15:37:47 +01:00
committed by GitHub
3 changed files with 10 additions and 2 deletions

View File

@@ -170,7 +170,8 @@ class Awards extends CI_Controller {
public function waja () {
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/wajamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wajamap.js"))
'assets/js/sections/wajamap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wajamap.js")),
'assets/js/leaflet/L.Maidenhead.js',
];
$this->load->model('waja');
@@ -450,7 +451,8 @@ class Awards extends CI_Controller {
public function was() {
$footerData = [];
$footerData['scripts'] = [
'assets/js/sections/wasmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wasmap.js"))
'assets/js/sections/wasmap.js?' . filemtime(realpath(__DIR__ . "/../../assets/js/sections/wasmap.js")),
'assets/js/leaflet/L.Maidenhead.js',
];
$this->load->model('was');

View File

@@ -220,6 +220,9 @@ info.addTo(map);
addMarkers();
});
var layerControl = new L.Control.Layers(null, { 'Gridsquares': maidenhead = L.maidenhead() }).addTo(map);
maidenhead.addTo(map);
}
function clearMarkers() {

View File

@@ -241,6 +241,9 @@ info.addTo(map);
addMarkers();
});
var layerControl = new L.Control.Layers(null, { 'Gridsquares': maidenhead = L.maidenhead() }).addTo(map);
maidenhead.addTo(map);
}