Coder Social home page Coder Social logo

saulobr88 / earthquakes-mapper Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 1.33 MB

"Earthquakes Mapper" was created using React with no backend persistence. Users can view earthquakes from around the world on a Google Map and filter based on specific times and earthquake magnitude. Earthquake data from USGS.

Home Page: https://earthquakes-map-saulo.netlify.com/

HTML 9.55% CSS 11.50% JavaScript 78.95%
javascript react google-maps-api usgs-api es6-javascript fronted ajax earthquake-data heatmap

earthquakes-mapper's Introduction

Earthquakes Mapper ๐Ÿ—บ

React App without backend persistence. Users can view earthquakes from around the world on a Google map and filter based on specific times and earthquake magnitude. Earthquake information is from the USGS API.

Components

it is fairly simple React Web App. The components are EarthquakesContainer, which has all other components as children. The children are EarthquakesForm with EarthquakesMap. EarthquakesMap is a implementation of Google Map, with Markers and InfoWindow, which is the information that is displayed when a user clicks on the earthquake icon on the map.

EarthquakesContainer makes use of the google-maps-react component. For the map is utilized a terrain Google Map, Markers, PopUps and a Heatmap layer. Google Maps API documentation here.

Each earthquake data point the map receives is plotted on the map based on its coordinates, weighted (for Heatmap) based on its magnitude, and given a title (for popup).

Services

Services holds the fetch requests to the USGS API. There fetchQuakes (which returns all earthquakes for last 30 days) and searchQuakes (which returns all earthquakes that meet user-specified criteria) functions. The results of the fetch requests are stored in the quakes state in the EarthquakesContainer.

Live

To see this application live, access here

Screenshots

Default page Search Result

Original Autor

Matthew Thorry

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.