Skip to content

Creating interactive maps using Leaflet.js library, Javascript, and HTML to retrieve earthquake information from a GeoJSON file and plot the results in a visual format.

Notifications You must be signed in to change notification settings

amylio/MappingEarthquakes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapping Earthquakes

Creating interactive maps using Leaflet.js library, Javascript, and HTML to retrieve earthquake information from a GeoJSON file and plot the results in a visual format.

Overview

The purpose of this project is to visually show the differences between the magnitudes of earthquakes all over the world for the last seven days. We wrote a script to pull the GeoJSON earthquake data from the USGS website to retrieve the geographical coordinates and magnitudes of earthquakes for the last seven days. The data is then added to a map. Since the information is linked to a real-time source, the map will update whenever the user accesses it. Scripts are built using JavaScript and D3.js library to retrieve the coordinates and magnitudes of the earthquakes from the GeoJSON data. We then used Leaflet library to plot the data on a Mapbox style map through an API request and made it interactive by adding visualization for different map styles, creating layers to display Tectonic plates, Earthquake magnitude and location information.

Throughout this project, we learned how to create map layers, visual customizations that included:

  • Toggling between map styles (i.e. dark, streets, satellite)
  • Color changes to lines, marker types, and sizes
  • Adding popup info box
  • Plotting different points, multiple points, lines, polygons

Examples

Map Style = Dark with circle marker and popup info box

darkpop

Map Style = Navigation Preview Light with dashed line mapping (5) location points

dashed

Challenge Submission

(files can be found here)

Deliverable 1: Add Tectonic Plate Data

tect

Deliverable 2: Add Major Earthquake Data

MajorEQ

Deliverable 3: Add an Additional Map

AddMap

Interactive map can be access through this link.

About

Creating interactive maps using Leaflet.js library, Javascript, and HTML to retrieve earthquake information from a GeoJSON file and plot the results in a visual format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published