Street View - Vinehall Close
by Ben Clayton
HTML
<div id="pano"></div>
<!-- Replace the value of the key parameter with your own API key. -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initialize">
</script>
CSS
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
#pano {
float: left;
height: 100%;
width: 100%;
}
JavaScript
function initialize() {
// https://www.instantstreetview.com/@50.880041,0.587285,-95.8h,4.81p,1.65z
var vinehall = {
lat: 50.880041,
lng: 0.587285
};
var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'), {
position: vinehall,
pov: {
heading: -95.8,
pitch: 4.81,
zoom:1.65
}
});
map.setStreetView(panorama);
}