Skip to content

Instantly share code, notes, and snippets.

@Xect
Xect / earthquakes.js
Last active August 29, 2015 14:11 — forked from oalami/earthquakes.js
const CONTINENTS = ["europe", "asia", "africa", "north_america", "south_america", "antartica", "oceanic"];
var map;
var previousInfowindow;
var ref = new Firebase("https://publicdata-earthquakes.firebaseio.com/by_continent/");
function mapQuake(snapshot) {
var quake = snapshot.val();
var myLatlng = new google.maps.LatLng(quake.location.lat,quake.location.lng);
map.setCenter(myLatlng);