https://github.com/umstek/resource-watch-api-experiment
https://github.com/umstek/resource-watch-api-experiment
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/umstek/resource-watch-api-experiment
- Owner: umstek
- Created: 2021-11-07T09:31:04.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T17:33:12.000Z (over 1 year ago)
- Last Synced: 2024-11-17T15:20:55.232Z (11 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# How to preview
1. Create an account on mapbox.com and [create an API key](https://account.mapbox.com/access-tokens) with default permissions.
2. Rename mapboxAccessToken.example.js to mapboxAccessToken.js and paste your access token in the file.
3. Use any static server to preview the site.
e.g.: Install NodeJS, run `npx serve` and visit `http://localhost:3000`# References
Mostly [ResourceWatch tutorial](https://resource-watch.github.io/doc-api/tutorials.html) but using a [newer Mapbox API](https://docs.mapbox.com/mapbox-gl-js/guides/install/).
# Notes
Mapbox free tier is quite [limited](https://www.mapbox.com/pricing/). We might need to use leaflet.js instead.