Skip to content
Snippets Groups Projects
Commit 872c74dc authored by Bucknell, Mary S.'s avatar Bucknell, Mary S.
Browse files

Merge branch 'wdfn-756' into 'main'

WDFN-756 - Return the first 1000 sites in the sites geojson fetch function.

See merge request !417
parents 647b9839 537448d1
No related branches found
No related tags found
1 merge request!417WDFN-756 - Return the first 1000 sites in the sites geojson fetch function.
......@@ -49,7 +49,7 @@ export const fetchSitesGeoJson = async function(wktPolygon) {
const expandQuery = encodeURIComponent('Locations($select=id,location)');
const locationQuery = encodeURIComponent(`st_within(Location/location, geography'${wktPolygon}')`);
const url =
`${config.SENSOR_THINGS_ENDPOINT}/Things?$expand=${expandQuery}&$filter=${locationQuery}&$resultFormat=GeoJSON`;
`${config.SENSOR_THINGS_ENDPOINT}/Things?$expand=${expandQuery}&$filter=${locationQuery}&$resultFormat=GeoJSON&$top=1000`;
try {
const response = await fetch(url, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment