Community Plugin
View plugin on GitHubgatsby-source-arcgis-hub
A Gatsby source plugin for pulling datasets from an ArcGIS Hub open data site into your site schema.
Install
yarn add gatsby-source-arcgis-hub
Example
// In gatsby-config.js
plugins: [
{
resolve: `gatsby-source-arcgis-hub`,
options: {
siteUrl: `https://data.detroitmi.gov`,
},
},
]
How it works
The plugin fetches the data.json
file at the root of every ArcGIS Hub open data portal. This contains information about the datasets shared on the portal; from there, it makes a call to http://opendata.arcgis.com/api/v3/datasets/
endpoint to get more information about each dataset.