<!--Add scripts from google while signing up for MAps-->
<script type="text/javascript">
var myPano;
var geocoder2;
function initialize() {
var address2='Address';
geocoder2 = new GClientGeocoder();
if (geocoder2) {
geocoder2.getLatLng(
address2,
function(point) {
if (!point) {
} else {
var fenwayPark = point;
panoramaOptions = { latlng:fenwayPark };
myPano = new GStreetviewPanorama(document.getElementById("pano"), panoramaOptions);
GEvent.addListener(myPano, "error", handleNoFlash);
}
}
);
}
}
function handleNoFlash(errorCode) {
// alert(errorCode);
document.getElementById('pano').innerHTML="<--ERROR MESSAGE-->";
}
</script>