Skip to content

JavaScript is used to visualize USGS data in Leaflet.

Notifications You must be signed in to change notification settings

hfattor/leaflet-challenge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet Earthquake Map

D3 imports GeoJSON data from the U.S. Geological Survey (USGS)on the past 7 days of earthquakes worldwide. A Leaflet map plots all the earthquakes based on their longitude and latitude. The size of the markers represents the earthquake magnitude. The color of the markers represents the depth of each earthquake in km. Clicking on the markers provides additional information on the earthquake, including the data and time it occurred, the magnitude, the location of the earthquake, and the earthquake's depth.

Data and Code Sources

Dataset from the United States Geological Survey.

Unix DateTime JavaScript conversion function convertTimestamp based on StackOverflow answer by Kamal Shooryabi 7/21/2018 and modified by Ivan 6/21/2018.

Color hex code sorting function getColor based on Create beautiful dynamic Legend map - Leafletjs TopoJson by Akshay Upadhyay on IGISMap.

Releases

No releases published

Packages

No packages published