Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Mapping_Earthquakes

Objectives

  • Add three map styles to allow the user to select from three different maps.
  • Use d3.json() to get earthquake & tectonic plate data and add the data using the L.geoJSON() layer.
  • Style the earthquake data based on magnitude.
  • Style the tectonic plate LineString data to stand out on the map.
  • Add the tectonic plate data as an overlay with the earthquake data.

Resources

  • JavaScript
  • html
  • css
  • Leaflet
  • D3
  • Mapbox
  • data:

Description

A base layer is generated using Mapbox to hold the three base map styles. Overlays are added for the earthquake & tectonic plate data. These data are obtained by making separate API calls using d3.json() (sources noted in the Resources section). The earthquake data is drilled down into to obtain the magnitude of each instance. This parameter is passed into functions to style the circle markers with both size and color based on the magnitude.

Deployed page: https://nickjlupu.github.io/Mapping_Earthquakes/

Recommendations / Next Steps

  • Add date and time to popups

About

Mapbox & Leaflet maps displaying the most recent earthquakes over the past 7 days. API calls to retrieve data including GeoJSON.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages