1.0.0 • Published 2 years ago
gatsby-source-statshunters v1.0.0
gatsby-source-statshunters
gatsby-source-statshunters is a Gatsby plugin to use StatsHunters as a data source and display explorer tiles.
What are StatsHunters explorer tiles?
Usage
- Download
gatsby-source-statshuntersfrom the NPM registry:
yarn add gatsby-source-statshunters- Add the plugin in your
gatsby-config.jsfile
ℹ️ Login to StatsHunters and copy the API key from the settings page.
module.exports = {
plugins: [
{
resolve: "gatsby-source-statshunters",
options: {
api_key: process.env.STATSHUNTERS_KEY,
},
},
],
}- query data and enjoy
statsHunters {
square
tiles
cluster
}square, tiles and cluster are arrays of [lat,lng] coordinates.
- Display your tiles with your favorite map library

You can checkout how to use it in the example folder.
Contributing
- ⇄ Pull/Merge requests and ★ Stars are always welcome.
- For bugs and feature requests, please create an issue.
License
This project is licensed under the MIT License - see the LICENCE file for details
Thanks
I wanted to thank Stan Ansems once again for making StatsHunters and allowing me to use the api to create this plugin. If you like statshunters, consider making a donation
1.0.0
2 years ago