1.0.2 • Published 4 years ago

gatsby-source-arcgis-hub v1.0.2

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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.