The objective of this project is to gather earthquake GeoJSON data from the USGS API, create and explore interactive maps of earthquakes around the world.
The earthquake data is represented on the maps in relation to the tectonic plates’ location on the earth, and according to each event's magnitude.
- Data Source: Earthquakes GeoJSON, Earthquakes above 4.5mag GeoJSON, Tectonic Plate GeoJSON
- Software: HTML/CSS, JavaScript, Visual Studio Code 1.49.1, Leaflet 1.7.1, D3.js 6.2.0
To interact with the maps API the user have to visit mapbox.com, create a Mapbox account and retrieve the access token.
As shown below, the index.html calls for the Mapbox API key in the config.js file.
The user would have to save the token key in config.example.js and rename the file config.js:
To open the index.html file, open the command line, navigate to the main folder and on the command line, enter
python -m http.server
.
The deployed webpage is accessible at https://cedoula.github.io/Mapping_Earthquakes.