In this Coding Challenge, I visualize earthquake data from the USGS ( by mapping the latitude, longitude and the magnitude of earthquakes with p5.js. The map imagery is pulled from mapbox.js and the math demonstrated coverts latitude, longitude to x,y via Web Mercator.

Support this channel on Patreon:

Send me your questions and coding challenges!:

The Coding Train website:

Links discussed in this video:
Web Mercator on Wikipedia:
Earthquake Database:
Regular Expression playlist:

Source Code for the all Video Lessons:


For More Coding Challenges:
For an Intro to Programming using p5.js:
For more videos about p5.js and Data:

Help us caption & translate this video!