Skip to content

Mapping earthquakes around the world using Javascript, APIs, and Leaflet

Notifications You must be signed in to change notification settings

Bbert88/mapping-earthquakes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mapping earthquakes around the world using Javascript, APIs, D3, and Leaflet library

Overview

overview

The purpose of this project was to create an interactive visualization of Earthquake data using the d3 library to make API calls to retrieve the most recent data on earthquakes which have occurred throughout the world in the past 7 days. The data was retrieved from USGS.GOV which is in GeoJSON format. The data was read in and then code was written to create the maps, using Mapbox. Each earthquake was mapped and formatted based on its magnitude. Different colors and marker sizes were used, as determined by the magnitude. The tectonic plate data was retrieved from Github.

Tile Layers and Overlays

tile layers and overlays

Three different Mapbox styles were used which can be toggled on and off (Streets, Satellite, and Light). This was completed by creating a tile layer for each style and then adding the tile layer to the baselayer. Only one style can be used at a time.

Each Style

An image of the Streets style is displayed under the "Overview" section above

Satellite

satellite

Light

light

Overlays

There are three different overlay options: Earthquakes (which is all earthquakes regardless of magnitude), Tectonic Plates, and Major Earthquakes (Earthquakes w/ magnitude over 4.5). There can be any combination of active overlays at any given time. All can be displayed simultaneously, one at a time, or multiple. This is made apparent by the check boxes next to each label. In the above images, all overlays are active. Please see below image of only the major earthquake overlay.

major

About

Mapping earthquakes around the world using Javascript, APIs, and Leaflet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published