Skip to content

πŸŒπŸ™An Interactive Dashboard on USGS Earthquake dataset

Notifications You must be signed in to change notification settings

yeyanwang/leaflet-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Earthquake Dashboard

Project Description

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.

The USGS is interested in building a new set of tools that will allow them to visualize their earthquake data. They collect a massive amount of data from all over the world each day, but they lack a meaningful way of displaying it.

This is an interative dashboard to explore the "USGS All Earthquakes from the Past 7 Days" dataset. This dashboard contains a map to visualize USGS data that will allow them to better educate the public and other government organizations (and hopefully secure more funding) on issues facing our planet.

Built with

  • Leaflet
  • HTML
  • CSS
  • JavaScript
  • D3

Getting Started

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

  • Your favoriate code editor (e.g. VScode, etc.)
  • Your favoriate browser (e.g. Google Chrome, Firefox, etc.)
  • Get a mapbox API key

Installation

  • Clone this repo and save it in your local directory

  • git clone https://github.com/yeyanwang/leaflet-challenge.git

  • Open the repo in a code editor to see the codes

  • Add and save your API key inside of a config.js file inside of the static/js/folder

    export const API_KEY = <your API key>

  • Visit localhost: 5000 in your browser

Features

The Map

The map is set to centered at GeoCoordinate [37.6000, -95.6650] (the United States), with a zoom level of 2.5. Each marker on the map indicates an incident of earthquake, and the orange lines across the map indicate the tectonic plates boundaries. The map is zoomable. You can also move the map by click and drag to explore different areas.

See below snippet:

image

Layer Control

The map has 3 base maps and 2 overlays to choose from.

  • The base map layers are the outdoor, satellite (default), and gray scale, you can check a different circle to toggle between the base maps

  • The overlays are Earthquakes layer and Tectonic Plates layer, you can select one or more overlays to visualize them on the map

    image

Markers

  • The size of the marker scales with the earthquake magnitude level

  • The color of the marker changes with the depth level

  • Each marker has a tooltip with the Magnitude, the location and depth

    image

Legend

  • The legend showing the depth and their corresponding color

Credits

About

πŸŒπŸ™An Interactive Dashboard on USGS Earthquake dataset

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published