This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global Firebase, google, $, GeoFire */ | |
(function () { | |
"use strict"; | |
var map, previousInfowindow, ref, center, radiusInKm, | |
markers = {}, | |
lines = {}; | |
radiusInKm = 0.5; | |
ref = new Firebase("https://publicdata-parking.firebaseio.com/san_francisco"); | |
center = [37.78565219391501, -122.4058404513338]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |