diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php
index f67386cb..c1c411e1 100644
--- a/application/views/interface_assets/footer.php
+++ b/application/views/interface_assets/footer.php
@@ -100,6 +100,7 @@ $(document).ready(function(){
uri->segment(1) == "logbook" && $this->uri->segment(2) != "view") { ?>
+
diff --git a/assets/js/leaflet/leafembed.js b/assets/js/leaflet/leafembed.js
index 051a9387..32c77624 100644
--- a/assets/js/leaflet/leafembed.js
+++ b/assets/js/leaflet/leafembed.js
@@ -23,11 +23,19 @@ function initmap(ShowGrid = 'No') {
// start the map in South-East England
map.setView(new L.LatLng(q_lat, q_lng), q_zoom);
- map.addLayer(osm);
-
+
+ map.addLayer(osm);
askForPlots();
+
map.on('moveend', onMapMove);
+ if(ShowGrid == "Yes") {
+ var maidenhead = L.maidenhead().addTo(map);
+ }
+
+ var layerControl = new L.Control.Layers(null, {
+ 'Gridsquares': maidenhead = L.maidenhead()
+ }).addTo(map);
}
function getXmlHttpObject() {