var panorama;
var currentYaw = 390.64659986187695;
currentYaw = 360 ;
var currentPitch = -20;
var timer;
var currentZoom = 3;
var zoomingIn = true;
var view = "gap";
function load() {
panorama = new GStreetviewPanorama(document.getElementById("pano"));
panorama.setLocationAndPOV(new GLatLng(40.6725785691049,-73.9707165956497), {yaw: currentYaw, pitch: currentPitch, zoom: currentZoom});
timer = window.setInterval(spiral, 200);
sequence = 0 ;
}
function spiral() {
currentYaw += 1;
panorama.panTo({yaw:currentYaw, pitch:currentPitch});
if (currentYaw > 460) {
view = "bb" ;
currentYaw = 230 ;
currentPitch = -20 ;
panorama.setLocationAndPOV(new GLatLng(40.70374913979151,-73.99401426315307),{yaw: currentYaw, pitch: currentPitch, zoom: currentZoom});
}
}
function stopPan() {
clearInterval(timer);
}
function zoom() {
if (zoomingIn) {
currentZoom++;
} else {
currentZoom--;
}
panorama.panTo({yaw:currentYaw, pitch:currentPitch, zoom:currentZoom});
if (currentZoom == 2) {
zoomingIn = false;
}
if (currentZoom == 0) {
clearInterval(timer);
timer = window.setInterval(spiral, 200);
}
}
function handleNoFlash(errorCode) {
if (errorCode == 603) {
document.write('
You need to install the
Adobe Flash Plug-in
to View this Content.') ;
return;
}
}
loading...