-
Notifications
You must be signed in to change notification settings - Fork 1
/
mapTest.html
36 lines (36 loc) · 1.26 KB
/
mapTest.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
<!DOCTYPE html>
<html>
<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 { height: 100% }
</style>
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCN-UEDAvOwwdUMagZBEDfXj2u9Cnh3fzg&sensor=true"></script>
<script src="Database.js"></script>
<script type="text/javascript">
function initialize() {
var points = new Array();
var mapOptions = {
center: new google.maps.LatLng(32.786986, -79.935883),
zoom: 10
};
var map = new google.maps.Map(document.getElementById("map-canvas"),
mapOptions);
for(var i = 0; i < dataSet.length; i++) {
points.push(new google.maps.Marker({
position: new google.maps.LatLng(dataSet[i].locationLat, dataSet[i].locationLong),
map: map,
title: dataSet[i].title
}));
}
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<div id="map-canvas"/>
</body>
</html>