From 537448d1e3bf96eea2796ab7379497c87f5daa8f Mon Sep 17 00:00:00 2001
From: mbucknel <mbucknell@usgs.gov>
Date: Thu, 28 Jul 2022 08:11:57 -0500
Subject: [PATCH] Return the first 1000 sites in the sites geojson fetch
 function.

---
 assets/src/scripts/web-services/sensor-things.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/assets/src/scripts/web-services/sensor-things.js b/assets/src/scripts/web-services/sensor-things.js
index 1db010904..4dc0bda75 100644
--- a/assets/src/scripts/web-services/sensor-things.js
+++ b/assets/src/scripts/web-services/sensor-things.js
@@ -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, {
-- 
GitLab