Skip to content

Commit

Permalink
Add get bounds to agsboreholes layer
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaGeo committed May 3, 2023
1 parent e42742a commit 005863f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
Expand Down

0 comments on commit 005863f

Please sign in to comment.