Coder Social home page Coder Social logo

salllym / leaflet-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.15 MB

Web data visualization using leaflet, Javascript and D3 to visualize earthquake data from the United States Geological Survey (USGS).

HTML 19.82% CSS 8.19% JavaScript 71.98%
d3 javascript leaflet

leaflet-challenge's Introduction

Visualizing Data with Leaflet

Deployment Link

https://salllym.github.io/leaflet-challenge/

Challenge Instructions

This project utilizes leaflet, Javascript and D3 to visualize the earthquake data from the United States Geological Survey (USGS). The USGS is responsible for providing scientific data about natural hazards, the health of our ecosystems and environment; and the impacts of climate and land-use change. Their scientists develop new methods and tools to supply timely, relevant, and useful information about the Earth and its processes.

Part-1: Basic Visualization

Get the Data Set

  • The USGS provides earthquake data in a number of different formats, updated every 5 minutes
  • The "All Earthquakes from the Past 7 Days" data set was selected from the USGS GeoJSON Feed page
  • The data was given in JSON format which was used to pull in the data for the visualization

Import and Visualize the Data

Create a map using Leaflet that plots all of the earthquakes from the data set based on their longitude and latitude.

  • The data markers reflect the magnitude of the earthquake by their size and and depth of the earth quake by color
  • Earthquakes with higher magnitudes appear larger and earthquakes with greater depth should appear darker in color
  • Popups that provide additional information about the earthquake were included when a marker is clicked
  • A legend was created to provide context for the map data

Part-2: More Data

Plot a second data set on the map above to illustrate the relationship between tectonic plates and seismic activity.

  • Pull in Tectonic Plates data set
  • Visualize it along side the original set of data
  • Add a number of base maps (Satellite Map, Grayscale Map, Outdoors Map and Dark Map) to choose from
  • Separate out the two different data sets (earthquakes and tectonic plates) into overlays that can be turned on and off independently
  • Add layer controls to the map

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.