-
Notifications
You must be signed in to change notification settings - Fork 1
/
08.html
62 lines (49 loc) · 1.85 KB
/
08.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
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/pano.css">
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
</head>
<body>
<div id="map-canvas"></div>
<div id="pano"></div>
<script type="text/javascript" src="js/assert.js"></script>
<script>
var SODA_LAT = 37.8757435;
var SODA_LONG = -122.25873230000002;
function initialize() {
var soda = new google.maps.LatLng(SODA_LAT, SODA_LONG);
var mapOptions = {
center: soda,
zoom: 15
};
// Initialize map to be centered on Soda Hall with a zoom of 15
// *** REPLACE null WITH YOUR CODE ***
var map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
// Initialize pov, a StreetViewPov object
// set the heading to 270 and the pitch to 0
// *** REPLACE null WITH YOUR CODE ***
var pov = {
heading: 270,
pitch: 0
};
// Initialize panoramaOptions, a StreetViewPanoramaOptions object
// set the position to Soda Hall and use pov
// *** REPLACE null WITH YOUR CODE ***
var panoramaOptions = {
position: soda,
pov: pov
};
var panoDiv = document.getElementById('pano');
// Initialize panorama, a StreetViewPanorama object
// *** REPLACE null WITH YOUR CODE ***
var panorama = new google.maps.StreetViewPanorama(panoDiv, panoramaOptions);
// Set map's street view to panorama
map.setStreetView(panorama);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</body>
</html>