-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocations.html
48 lines (48 loc) · 1.75 KB
/
locations.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Locations</title>
<script src="https://maps.googleapis.com/maps/api/js"></script>
<link href="css/style.css" rel="stylesheet">
<link href="css/bootstrap.min.css" rel="stylesheet">
<script>
function initialize() {
var mapCanvas = document.getElementById('map');
var pin1 = new google.maps.LatLng(39.9525839, -75.1652215);
var mapOptions = {
center: new google.maps.LatLng(39, -95),
zoom: 5,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(mapCanvas, mapOptions);
var infowindow = new google.maps.InfoWindow({
content: '',
map: map
//position: pin1
});
var marker = new google.maps.Marker({
position: pin1,
map: map
});
marker.setMap(map);
marker.addListener('mouseover', function() {
infowindow.open(map, marker);
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</head>
<body>
<ul class="nav nav-pills">
<li role="presentation" onclick = "active"><a href="profiles.html">Profiles</a></li>
<li role="presentation" onclick = "active"><a href="locations.html">Locations</a></li>
<li role="presentation" onclick = "active"><a href="resources.html">Resources</a></li>
</ul>
<p>Locations.html: to be implemented</p>
<div id="map"></div>
</body>
</html>