diff --git a/js/symb/leafletMap.js b/js/symb/leafletMap.js index fcabb4eda3..d2da017d93 100644 --- a/js/symb/leafletMap.js +++ b/js/symb/leafletMap.js @@ -132,7 +132,8 @@ class LeafletMap { var macro_strat = L.tileLayer('https://macrostrat.org/api/v2/maps/burwell/emphasized/{z}/{x}/{y}/tile.png', { displayRetina:true, - attribution: 'Map data: © Macrostrat (CC-BY-4.0)' + opacity: .50, + attribution: 'Map data: © Macrostrat (CC-BY-4.0)', }); const openTopoLayer = L.tileLayer('https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png', { @@ -142,14 +143,16 @@ class LeafletMap { }); if(map_options.layer_control !== false) { - L.control.layers({ - "Terrain": terrainLayer, - "Basic": basicLayer, - "Topo": openTopoLayer, - "Satellite": Esri_WorldImagery, - "Macrostrat": macro_strat, - //"Satellite": satelliteLayer, - }).addTo(this.mapLayer); + const layers = { + "Terrain": terrainLayer, + "Basic": basicLayer, + "Topo": openTopoLayer, + "Satellite": Esri_WorldImagery, + }; + const overlays = { + "Macro Strat": L.layerGroup([macro_strat]) + } + L.control.layers(layers, overlays).addTo(this.mapLayer); } if(map_options.scale !== false) {