Coder Social home page Coder Social logo

kk-deng / global-earthquakes-map-leaflet Goto Github PK

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

Building a new set of tools that will allow users to visualize the earthquake data from USGS.

HTML 14.34% CSS 6.10% JavaScript 79.57%
leaflet javascript d3js geojson maps earthquakes

global-earthquakes-map-leaflet's Introduction

Leaflet-Challenge

Building a new set of tools that will allow users to visualize the earthquake data from USGS.

The geoJSON dataset of earthquakes comes from USGS open data: https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php

The geoJSON dataset of Tectonic Plates comes from this json file: https://raw.githubusercontent.com/fraxen/tectonicplates/master/GeoJSON/PB2002_boundaries.json

The one in this project is about All Earthquakes in the past 7 days.

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.

Files Index

Following files are attached:

  1. index.html: Main page with an interactive Leaflet Map

  2. logic.js: Main JavaScript file for visualization of earthquakes

Summary of features

The USGS is interested in building a new set of tools that will allow them visualize their earthquake data. They collect a massive amount of data from all over the world each day, but they lack a meaningful way of displaying it. Their hope is that being able to visualize their data will allow them to better educate the public and other government organizations (and hopefully secure more funding..) on issues facing our planet.

Level 1: Basic Visualization

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

  • Data markers reflect the magnitude of the earthquake by their size and and depth of the earth quake by color. Earthquakes with higher magnitudes should appear larger and earthquakes with greater depth should appear darker in color.

  • Has tooltips to the circles and display each tooltip with the data that the user has selected.

Level 2: More Data

  • A second data set on your map to illustrate the relationship between tectonic plates and seismic activity.

  • Tectonic Plates boundaries geoJSON was provided by https://github.com/fraxen/tectonicplates.

  • Has a number of base maps to choose from as well as separate out our two different data sets into overlays that can be turned on and off independently.

  • Add layer controls to our map.

  • Switching different tile layers:

global-earthquakes-map-leaflet's People

Contributors

kk-deng avatar

Watchers

 avatar

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.