diff --git a/application/views/interface_assets/footer.php b/application/views/interface_assets/footer.php index 7978ec74..b8e272e4 100644 --- a/application/views/interface_assets/footer.php +++ b/application/views/interface_assets/footer.php @@ -645,7 +645,7 @@ function getLookupResult() { var qso_loc = '//input->post('band')); ?>'; - var q_zoom = 2; + var q_zoom = 3; $(document).ready(function(){ config->item('map_gridsquares') != FALSE) { ?> @@ -653,7 +653,7 @@ function getLookupResult() { var grid = "No"; - initmap(grid); + initmap(grid, 'custommap'); }); diff --git a/application/views/map/custom_date.php b/application/views/map/custom_date.php index de416283..830adb58 100644 --- a/application/views/map/custom_date.php +++ b/application/views/map/custom_date.php @@ -53,6 +53,6 @@ -
+
diff --git a/assets/js/leaflet/leafembed.js b/assets/js/leaflet/leafembed.js index 8e9c57be..ab4b599b 100644 --- a/assets/js/leaflet/leafembed.js +++ b/assets/js/leaflet/leafembed.js @@ -10,7 +10,7 @@ var greenIcon = L.icon({ iconSize: [10, 10], // size of the icon }); -function initmap(ShowGrid = 'No') { +function initmap(ShowGrid = 'No', MapTag = 'map') { // set up AJAX request ajaxRequest=getXmlHttpObject(); if (ajaxRequest==null) { @@ -19,7 +19,7 @@ function initmap(ShowGrid = 'No') { } // set up the map - map = new L.Map('map'); + map = new L.Map(MapTag); // create the tile layer with correct attribution var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';