-
Notifications
You must be signed in to change notification settings - Fork 0
/
Heatmap.html
44 lines (33 loc) · 1.17 KB
/
Heatmap.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
"<!DOCTYPE html>
<html>
<head>
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCXYVl62lnMmHjuGMOWdNNgY4lCxK8BopQ&callback=initMap"
type="text/javascript"></script>
<script type="text/javascript" src="https://www.heatmaptool.com/js/heatmap.js"></script>
<script type="text/javascript">
function initialize() {
// Creates and inserts Google Map
var mapOptions = {
zoom: 4,
center: new google.maps.LatLng(38, -97),
mapTypeId: google.maps.MapTypeId.SATELLITE,
key:'AIzaSyCXYVl62lnMmHjuGMOWdNNgY4lCxK8BopQ'
};
var map = new google.maps.Map(document.getElementById('map_canvas'), mapOptions);
// Constructs a heat map overlay
var heatMap = new HeatMap({
key: '94b12a8a7b4bfae5b7578726f73269af',
data: 'https://www.heatmaptool.com/data/mcdonalds.csv',
gradient: 'fire',
scale_dimming: 0.5,
radius: 5
});
// Adds heat map to Google Map
heatMap.addTo(map);
}
</script>
</head>
<body onload="initialize();">
<div id="map_canvas" style="position: absolute; top: 0; right: 0; bottom: 0; left: 0;"></div>
</body>
</html>