-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathud-main.js
More file actions
42 lines (26 loc) · 1.05 KB
/
ud-main.js
File metadata and controls
42 lines (26 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$(document).ready(function () {
console.log("ready");
// load the stations
$.getJSON('/foundStations', function (data) {
var stationListSelector = '#stationTable';
console.log("results " + JSON.stringify(data));
_.each(data, function (station) {
var newTime = moment(station.lastReport);
//$(stationListSelector)
//.append('<tr><td>' + station.name + '</td><td>' + newTime.format("dddd, MMMM Do YYYY, h:mm:ss a") + '</td><td>' + station.distanceFromHome + '</td></tr>');
});
}
);
var coCenter = new google.maps.LatLng(39.361194, -105.763006);
//var chicago = new google.maps.LatLng(41.875696,-87.624207);
var mapOptions = {
zoom: 8,
center: coCenter
};
map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions);
//google.maps.event.addDomListener(window, 'load', initialize);
map.panTo(coCenter);
map.setZoom(8);
console.log("map is ");
console.dir(map);
});