forked from pa7/heatmap.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gmaps-vb-adt-2011.html
51 lines (51 loc) · 1.71 KB
/
gmaps-vb-adt-2011.html
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
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Virginia Beach, VA 2011 ADT GMaps Heatmap Overlay</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link href="http://dev.bowdenweb.com/od/cfa/a/i/brigade.codeforamerica.org.favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="js/heatmap.js"></script>
<script src="js/heatmap-gmaps.js"></script>
<script src="js/adt-2011.js"></script>
<script>
var map;
var heatmap;
var testData={
max: 46,
data: adt2011Data,
};
window.onload = function(){
var myLatlng = new google.maps.LatLng(36.8506, -75.9779);
var myOptions = {
zoom: 12,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP,
disableDefaultUI: false,
scrollwheel: true,
draggable: true,
navigationControl: true,
mapTypeControl: false,
scaleControl: true,
disableDoubleClickZoom: false
};
map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
// radius is in pixels
heatmap = new HeatmapOverlay(map, {"radius":15, "visible":true, "opacity":60});
google.maps.event.addListenerOnce(map, "idle", function(){
heatmap.setDataSet(testData);
});
};
</script>
</head>
<body>
<header>
<h1 class="title">Virginia Beach, VA 2011 ADT GMaps Heatmap Overlay</h1>
<h1 class="logo logovb"><a href="http://codeforvirginiabeach.org/" title="Code for Virginia Beach | A Code for America Brigade">Code for Virginia Beach</a></h1>
</header>
<div class="maincontent">
<div id="map_canvas"></div>
</div>
</body>
</html>