An open API service indexing awesome lists of open source software.

https://github.com/ejw-data/leaflet-earthquakes

Example of using Leaflet and Mapbox. This map shows the location, magnitude and depth of earthquakes by customizing the markers.
https://github.com/ejw-data/leaflet-earthquakes

api html-css-javascript leafletjs

Last synced: 3 months ago
JSON representation

Example of using Leaflet and Mapbox. This map shows the location, magnitude and depth of earthquakes by customizing the markers.

Awesome Lists containing this project

README

          

# leaflet-earthquakes

Author: Erin James Wills, ejw.data@gmail.com

![Leaflet Maps](./config/images/earthquake-leaflet.png)
Photo by Erin Wills


## Overview


This repo shows how to use leaflet and d3 to map data from a public api. In this case we are pulling data from the US Geological Survey.


## Github Pages

https://ejw-data.github.io/leaflet-earthquakes/leaflet-step-1/index.html

https://ejw-data.github.io/leaflet-earthquakes/leaflet-step-2/index.html


## Technologies
* HTML/CSS/JS
* Leaflet.js


## Data Source

https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_week.geojson


## Setup and Installation
1. Clone the repo to your local machine
1. Open repo folder in an IDE like VSCode
1. Using a virtual server like the VSCode extention LiveServer
1. Run `basic-2/index.html`


## Example

![Leaflet Map of Earthquakes](./config/images/map1.JPG)