ArcGIS
ArcGIS Online Health Dashboard
FeatureServer API GeoJSON
Obtaining GeoJSON endpoint:
- Go to dataset’s FeatureServer page [example]
- Copy URL link from bottom of page [example]
- go to URL, click desired layer from Layer list, and copy URL [example]
- append parameters (see reference below) [example]
Parameters
For Entire Dataset
/query?f=geojson&outFields=*&where=1=1
Set Maximum Features
&resultRecordCount=1
Spatial Intersection
/query?f=geojson&outFields=*&returnGeometry=true&inSR=4326&spatialRel=esriSpatialRelIntersects&geometryType=[$esriGeometryType]&geometry=[$esriGeometry]
Complete Reference
Esri ArcGIS REST APIs Documentation
Example Configuration
Layer
{
"title": "Community Infrastructure Levy",
"group": "Council Facilities and Services",
"type": "GeoJSON",
"config": {
"spatial": {
"url": "https://services3.arcgis.com/TJxZpUnYIJOvcYwE/arcgis/rest/services/CILZones/FeatureServer/0/query?f=geojson&outFields=*&where=1=1",
"label": "DCP",
"id": "$id"
}
},
"opacity": 0.5,
}
What’s Here
{
"title": "Applicable Community Infrastructure Levy",
"icon": "img/map-icons/dollar4.svg",
"type": "GeoJSON",
"parent": "Whats Here",
"showInLayerControl": false,
"config": {
"spatial": {
"url": "https://services3.arcgis.com/TJxZpUnYIJOvcYwE/arcgis/rest/services/CILZones/FeatureServer/0/query?f=geojson&outFields=*&returnGeometry=true&inSR=4326&spatialRel=esriSpatialRelIntersects&geometryType=[$esriGeometryType]&geometry=[$esriGeometry]",
"label": "DCP",
"id": "$id"
}
}
}