Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
waterdataui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Water Mission Area
Internet of Water
waterdataui
Commits
537448d1
Commit
537448d1
authored
2 years ago
by
Bucknell, Mary S.
Browse files
Options
Downloads
Patches
Plain Diff
Return the first 1000 sites in the sites geojson fetch function.
parent
647b9839
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!417
WDFN-756 - Return the first 1000 sites in the sites geojson fetch function.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
assets/src/scripts/web-services/sensor-things.js
+1
-1
1 addition, 1 deletion
assets/src/scripts/web-services/sensor-things.js
with
1 addition
and
1 deletion
assets/src/scripts/web-services/sensor-things.js
+
1
−
1
View file @
537448d1
...
...
@@ -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
,
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment