Skip to content

Create interactive maps using Leaflet.js, mapbox, GeoJSON , Javascript and D3 library to explore earthquakes around the world.

Notifications You must be signed in to change notification settings

cjstreet/Mapping_Earthquakes

Repository files navigation

Mapping_Earthquakes

Using Mapbox & Leaflet maps displaying the most recent earthquakes over the past 7 days. API calls to retrieve data including GeoJSON.

Objective:

The objective is to use a URL for GeoJSON earthquake data from the USGS website and retrieve geographical coordinates and the magnitudes of earthquakes for the last seven days. Create an interactive map with three different map styles, displaying earthquake and tectonic data, using styles to display earthquake data based on magnitude, and using lineString to display tectonic plate data.

  1. Create webpage with HTML.
  2. Add style and legend with CSS.
  3. Use JavaScript and the D3.js library to retrieve the coordinates and magnitudes of the earthquakes from the GeoJSON data.
  4. Use the Leaflet library to plot the data on a Mapbox map through an API request and create interactivity for the earthquake data.

Resources

  • Data Source: Earthquake data from the past 7 days is obtained in GeoJSON format from the USGS website Tectonic plate data is obtained in GeoJSON format from fraxen's GitHub repository
  • Software: HTML, CSS, JavaScript, D3, Leaflet, Mapbox, Visual Studio Code, 1.73.0

Results:

Interactive Map

Earthquake_Challenge

About

Create interactive maps using Leaflet.js, mapbox, GeoJSON , Javascript and D3 library to explore earthquakes around the world.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published