Migrate to Netlify Today

Netlify announces the next evolution of Gatsby Cloud. Learn more

ContactSign Up
Community Plugin
View plugin on GitHub

gatsby-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.

© 2023 Gatsby, Inc.