Skip to content

Earthquake Visualization is a project that utilizes the Leaflet library to create an interactive map showcasing earthquake data. The map displays earthquake markers based on their magnitude and depth, providing users with a visual representation of seismic activity. See ReadMe for a more in-depth description

License

Notifications You must be signed in to change notification settings

amatutuwaa/leaflet-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet Earthquake Visualization

Deployed Web Page

Screenshot 2023-05-29 at 3 57 00 PM

The United States Geological Survey, or USGS for short, is responsible for providing scientific data about natural hazards, the health of our ecosystems and environment, and the impacts of climate and land-use change. Their scientists develop new methods and tools to supply timely, relevant, and useful information about the Earth and its processes. This projeect aims to visualize their earthquake data that will allow them to better educate the public and other government organizations (and hopefully secure more funding) on issues facing our planet.

The Earthquake Visualization project aims to create an interactive map that visualizes earthquake data using the Leaflet library. It retrieves earthquake data in JSON format from the United States Geological Survey (USGS) and plots the earthquakes on the map based on their latitude, longitude, magnitude, and depth. The visualization provides users with a clear understanding of the geographical distribution of earthquakes and allows them to explore additional information about each earthquake by clicking on the markers.

The map markers represent earthquakes, with their size indicating the magnitude and color reflecting the depth. Larger markers represent earthquakes with higher magnitudes, while darker colors represent greater depths. The legend on the map provides a visual guide to interpreting the depth of the earthquakes.

The project utilizes JavaScript and Leaflet, a widely-used open-source JavaScript library for interactive maps, to create the visualization. By visualizing earthquake data, users can gain insights into the occurrence and characteristics of earthquakes around the world, enhancing their understanding of seismic activity.

Part 1: Create the Earthquake Visualization

The first task is to visualize an earthquake dataset through the following steps:

  1. Getting the dataset.

    • The USGS provides earthquake data in a number of different formats, updated every 5 minutes. I visitted the USGS GeoJSON Feed page and chose a dataset to visualize.
    • When a dataset is chosen, a JSON representation of that data is provided. I use the URL of this JSON to pull in the data for the visualization.
  2. Importing and visualizing the data by doing the following:

    • Using Leaflet, I create a map that plots all the earthquakes from the dataset based on their longitude and latitude.

      • Your data markers should reflect the magnitude of the earthquake by their size and the depth of the earthquake by color. Earthquakes with higher magnitudes should appear larger, and earthquakes with greater depth should appear darker in color.
    • I included popups that provide additional information about the earthquake when its associated marker is clicked.

    • I created a legend that will provide context for the map data.

Screenshot 2023-05-29 at 4 13 50 PM

Part 2: Gather and Plot More Data

  1. I plot a second dataset on the map to illustrate the relationship between tectonic plates and seismic activity.
    • For this I will need to pull in this dataset and visualize it alongside the original data.

    • I perform the following tasks:

      • Plot the tectonic plates dataset on the map in addition to the earthquakes.
      • Add other base maps to choose from.
      • Put each dataset into separate overlays that can be turned on and off independently.
      • Add layer controls to your map.

Features

  1. Fetches earthquake data from the USGS GeoJSON feed
  2. Displays earthquakes as markers on an interactive map
  3. Marker size represents earthquake magnitude
  4. Marker color represents earthquake depth
  5. Popups provide additional information about each earthquake
  6. Legend provides context for interpreting earthquake depth

Technologies Used

  1. JavaScript
  2. Leaflet
  3. HTML
  4. CSS

Link(s)

https://amatutuwaa.github.io/leaflet-challenge/ - Deployed Web Page

About

Earthquake Visualization is a project that utilizes the Leaflet library to create an interactive map showcasing earthquake data. The map displays earthquake markers based on their magnitude and depth, providing users with a visual representation of seismic activity. See ReadMe for a more in-depth description

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published