Google Maps API - Embedding Panoramas
Jump to navigation
Jump to search
About
NOTE: This page is a daughter page of: Google Maps API
You can embed a pano id in your website, by finding the pano id (look at URL in google maps and extract the id which looks like QKZJDF5QWO0AAAAAAAABOw
) and then use either:
iflrame
<iframe width="560" height="315" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?layer=c&panoid=QKZJDF5QWO0AAAAAAAABOw&ie=UTF8&source=embed&output=svembed&cbp=13%2C53.26090895938182%2C%2C0%2C-4.575949921918365"></iframe>
Google Maps API
function initialize() {
var myPanoid = "QKZJDF5QWO0AAAAAAAABOw";
var panoramaOptions = {
pano: myPanoid,
pov: {
heading: 45,
pitch:-2
},
zoom: 1
};
var myPhotoSphere = new google.maps.StreetViewPanorama(
document.getElementById('map-canvas'),
panoramaOptions);
myPano.setVisible(true);
}
google.maps.event.addDomListener(window, 'load', initialize);
... see also: Google Maps API - Street View Panorama Pano Id Viewer
Static Picture
<img src="//maps.googleapis.com/maps/api/streetview?size=600x400&fov=90&heading=350&pitch=-2&pano=QKZJDF5QWO0AAAAAAAABOw&sensor=false">
See Also