-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
49 lines (38 loc) · 1.32 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
<!DOCTYPE html>
<html ng-app>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100% }
body { height: 100%; margin: 0; padding: 0 }
#map_canvas { width: 300px; height: 300px; }
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?libraries=visualization&key=AIzaSyBBKVTfyoEeTYBf2ou92L85S15mFpWHdQ8&sensor=false">
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">
</script>
<script src="angular.js"></script>
<script src="angular-resource.js"></script>
<script src="mapDataController.js"></script>
<script type="text/javascript">
BO_namespace = {};
BO_namespace.map = "";
$(document).ready(function mapSetup() {
BO_namespace.map = new google.maps.Map(
document.getElementById("map_canvas"), {
center: new google.maps.LatLng(41.910964, 12.46114),
zoom: 4,
mapTypeId: google.maps.MapTypeId.ROADMAP
});
});
</script>
</head>
<body>
<div id="map_canvas"></div>
<div id="map_wrapper" ng-controller="mapDataController">
<button ng-click="addHeatPoint()">add</button>
<span style="display:none;">{{ updateMap() }}</span>
</div>
</body>
</html>