Skip to content

Instantly share code, notes, and snippets.

@freidamachoi
Created February 28, 2013 15:38
Show Gist options
  • Save freidamachoi/5057619 to your computer and use it in GitHub Desktop.
Save freidamachoi/5057619 to your computer and use it in GitHub Desktop.
GOOGLEMAPS: STREETVIEW
<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