Giter VIP home page Giter VIP logo

mapping-earthquakes's Introduction

Mapping-Earthquakes

Using Javascript, D3, Mapbox and Leaflet to create an interactive map of US Geological Survey (USGS) GeoJSON earthquake data

Overview

GeoJSON data is pulled from the USGS earthquake website and populated onto a Mapbox-generated base map using JavaScript and the D3 library. An API request to Mapbox obtains the base map and satellite layers, and Leaflet methods are used to create the interactive layers, overlays and popups. The popup markers can be clicked to obtain location and magnitude information, and are also colored (refer to the legend) and sized to reflect earthquake magnitude. By toggling layers and overlays, multiple visualizations are possible. The map is rendered on a local server.

Map Layers: Street, Satellite, Ocean

Overlays: All Earthquakes, Tectonic Plates, Major Earthquakes (only)

controls

This map is showing a street view with tectonic plates and all earthquakes. map

This map is showing the ocean terrain and location of only the major earthquakes (>4.5 magnitude). map

To render the data visualization, a valid API token for Mapbox is needed, which requires you create an account (here). Assign the token to a variable API_KEY and save to a config.js file in the same directory as the challenge_logic.js file. The files are located in the Earthquake_Challenge folder.

mapping-earthquakes's People

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.