nickjlupu / leaflet-project

The goal of the project is to display multiple and interactive maps with the location and magnitude of earthquakes during the last 7 days around the world. The Javascript-Leaflet library, HTML, CSS, Bootstrap, and Javascript were used in the project. The Mapbox-API was also used to load the base maps.

Home Page:https://github.com/cemoga/leaflet-project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Location and Magnitude of Earthquakes in the Past 7 Days

App Running


Project Description

The goal of the project is to display multiple and interactive maps with the location and magnitude of earthquakes during the last 7 days around the world. The Javascript-Leaflet library, HTML, CSS, Bootstrap, and Javascript were used in the project. The Mapbox-API was also used to load the base maps. The project was divided into two steps with different levels of complexity.

Libraries Required (already included in the index.html file)

  • D3 JavaScript
  • Leaflet

Sample app Screenshot

  • Step 1:

Screenshot

  • Step 2:

Screenshot


Instructions

Steps

  1. Download or clone all the files contained in this repo.
  2. Create a Mapbox Token
  3. Include your Mapbox Token in the /Leaflet-Step-1/static/js/config.js and /Leaflet-Step-2/static/js/config.js files.
  4. Run a python -m http.server or any other method for this purpose.
  5. Load the Leaflet-Step-1/index.html and Leaflet-Step-2/index.html files.

File Description

Leaflet-Step-1

  • It contains all the files for the first part of the project.

index.html

  • Contains the HTML code that drives the maps and references the required libraries

static

  • It contains the CSS file with the formatting information
  • It contains the js with the Javascript code using the D3 library for the interactive plots.

Screenshots

  • It contains the gif and png files with screenshots of the app running

Leaflet-Step-2

  • It contains all the files for the second part of the project.
  • All folder are the same with this exception:

static (2)

  • It contains an additional folder that contains the JSON file with the tectonic-plate-boundaries information

About

The goal of the project is to display multiple and interactive maps with the location and magnitude of earthquakes during the last 7 days around the world. The Javascript-Leaflet library, HTML, CSS, Bootstrap, and Javascript were used in the project. The Mapbox-API was also used to load the base maps.

https://github.com/cemoga/leaflet-project


Languages

Language:JavaScript 70.1%Language:HTML 16.3%Language:CSS 13.6%