I have a Google Street View that I have added using the Google Maps JavaScript API v3. You can see it here. Most of what the map does is fine. The only problem is that the Street View seems to be displaying the location in a weird spherical effect. I just want the street view to be the same as it is on here with just the straight image of the location without any panorama effect.
The code I have used is here:
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDvvLfsqnDzgL4oe6HhKgVpmlosjKGME8E"></script>
<script>
function initialize() {
var fenway = new google.maps.LatLng(51.453484, -2.600000);
var panoramaOptions = {
position: fenway,
pov: {
heading: 225,
pitch: 20
},
linksControl: false,
scrollwheel: false,
clickToGo: true
};
var panorama = new google.maps.StreetViewPanorama(document.getElementById('pano'), panoramaOptions);
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
<div id="pano" style="width: 1920px; height: 560px;"></div>
Please tell me if I am missing something.