-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (46 loc) · 1.99 KB
/
index.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>
<title>Scoped heatmap example</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<link rel="stylesheet" href="mapstyle.css">
<script type="text/javascript" src="mapinteraction.js"></script>
</head>
<body>
<h2>Worldwide maximum temperatures in Jan 2015</h2>
Draw an area on the map to fetch results for that area. <br /><br />
<!--The div element for the map. We will attach the map via the JS above -->
<div id="map"></div>
<!-- LOADING SPINNER -->
<img id="spinner" class="fade" src="img/loader.gif">
<!-- MENU -->
<div id="menu">
<div id="stats">
<h3>Statistics:</h3>
<table>
<tr>
<td>Total Locations:</td><td id="rowCount"> - </td>
</tr>
<tr>
<td>Query Execution:</td><td id="duration"> - </td>
</tr>
<tr>
<td>Data Processed:</td><td id="bytes"> - </td>
</tr>
</table>
</div>
</div>
<!-- MENU END -->
<!-- Async script executes immediately and must be after any DOM elements used in callback. -->
<!-- Note that we load the visualization & drawing library here in the querystring, for allowing the user to draw an area on the map & displaying heatmaps in that area -->
<script src="https://maps.googleapis.com/maps/api/js?libraries=visualization,drawing&key=[Your-Api-Key]" async defer></script>
<!-- You will use the Google Client API for Javascript to run queries against BigQuery. -->
<script src="https://apis.google.com/js/client.js"></script>
<!-- The end user of the application needs to authorize the application to access data in BigQuery on their behalf.
The Google Client API for JavaScript handles the OAuth logic to do this. -->
<script type="text/javascript">
gapi.load('client:auth', authorize);
</script>
</body>
</html>