This project was bootstrapped with Create React App.
Visit HERE to see the app running
You can freely edit and use the code submitted here as long as there is mention of this repo.
Fetch data with axios and use mapbox to display the data.
Change to hooks || Have the markers display on hover || Improve CSS (heavily considering replacing semantic UI react)
Check the mapbox documentation on how to get your own API key
Clone the repo
create an .env file The .env file should contain the following line:
REACT_APP_API_KEY= YOUR_API_KEY
Once you have your API key, you can run this with your preferred method npm start
or yarn start
.
Disclaimer
This piece of code uses public USGS data and is by no means any kind of official app.