From 5a9efedb14ce1cbe0544dec35aedeec3531d612d Mon Sep 17 00:00:00 2001 From: KoalaGeo Date: Mon, 26 Jun 2023 10:00:07 +0100 Subject: [PATCH] Update map.js --- app/static/js/map.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/static/js/map.js b/app/static/js/map.js index 2b69922..22ef3a5 100644 --- a/app/static/js/map.js +++ b/app/static/js/map.js @@ -47,13 +47,25 @@ geologyOfbtn = L.tileLayer.betterWms('https://ogc.bgs.ac.uk/cgi-bin/BGS_Bedrock_ var topo = L.esri.basemapLayer("Topographic").addTo(map); var imagery = L.esri.basemapLayer("Imagery"); -/** Use the L.tileLayer.betterWms extension to load the AGS wms layer */ -var agsindex = L.tileLayer.wms('https://map.bgs.ac.uk/arcgis/services/AGS/AGS_Export/MapServer/WMSServer?', { +// var agsindex = L.tileLayer.wms('https://map.bgs.ac.uk/arcgis/services/AGS/AGS_Export/MapServer/WMSServer?', { +// layers: 'Boreholes', +// format: 'image/png', +// transparent: true, +// attribution: "AGS Data from British Geological Survey", +// zIndex: 1001 +// }).addTo(map); + +/** Use the L.tileLayer.betterWms extension to load the wms layer */ +agsindex = L.tileLayer.betterWms('https://map.bgs.ac.uk/arcgis/services/AGS/AGS_Export/MapServer/WMSServer?', { layers: 'Boreholes', + tiled: true, format: 'image/png', transparent: true, attribution: "AGS Data from British Geological Survey", + opacity: 0.5, + continuousWorld: true, zIndex: 1001 + }).addTo(map); /** Use the Leaflet.FeatureGroup.OGCAPI.js extension to load the AGS OGCAPI-Features layer */