Skip to content

Commit

Permalink
Update map.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaGeo committed Jun 26, 2023
1 parent 8633855 commit 5a9efed
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions app/static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 5a9efed

Please sign in to comment.