Created
February 28, 2013 15:38
-
-
Save freidamachoi/5057619 to your computer and use it in GitHub Desktop.
GOOGLEMAPS: STREETVIEW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Google Maps JavaScript API v3 Example: Embedded StreetView</title> | |
<link href="/maps/documentation/javascript/examples/default.css" rel="stylesheet"> | |
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> | |
<script> | |
function initialize() { | |
var bryantPark = new google.maps.LatLng(37.869260, -122.254811); | |
var panoramaOptions = { | |
position: bryantPark, | |
pov: { | |
heading: 165, | |
pitch: 0 | |
}, | |
zoom: 1 | |
}; | |
var myPano = new google.maps.StreetViewPanorama(document.getElementById('pano'), panoramaOptions); | |
myPano.setVisible(true); | |
} | |
</script> | |
</head> | |
<body onload="initialize()"> | |
<div id="pano" style="width: 425px; height: 240px"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment