From 005863fa5547fac0c551084d5554f0dff77f52e4 Mon Sep 17 00:00:00 2001 From: KoalaGeo Date: Wed, 3 May 2023 16:16:16 +0100 Subject: [PATCH] Add get bounds to agsboreholes layer --- app/static/js/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/static/js/map.js b/app/static/js/map.js index 01f9d51..fe37835 100644 --- a/app/static/js/map.js +++ b/app/static/js/map.js @@ -72,7 +72,7 @@ var agsindex = L.tileLayer.wms('https://map.bgs.ac.uk/arcgis/services/AGS/AGS_Ex // }); (async () => { - const agsboreholes = await fetch('https://ogcapi.bgs.ac.uk/collections/agsboreholeindex/items?limit=100', { + const agsboreholes = await fetch('https://ogcapi.bgs.ac.uk/collections/agsboreholeindex/items?bbox=' + map.getBounds().toBBoxString() + '&limit=100', { headers: { 'Accept': 'application/geo+json' }