I got it to work!!! kinda
it actually loads into the correct pano now but IE 6 and 7 will not
load anything at all into the map window and in FF3 and 4 I am getting
the same issue of when i reload the page it reverts back to a standard
map zoomed way out (no custom pano's at all)
anyone know why this would happen?
I avoided the function getPanoramaByLocation altogether, in case it
was giving a delayed response. So i hard coded the entryPanoId
Here's the code i used:
function initialize() {
startApplication();
entryPanoId = "3GX01a0fA1reb1PI6Oqm-Q";
panorama.setPano('storefront');
panorama.setPosition(latlng_storefront);
}
function startApplication() {
var mapOptions = {
center: latlng_storefront,
zoom: 7,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map_canvas'),
mapOptions);
panorama = map.getStreetView();
var panoOptions = {
position: latlng_storefront,
visible: true,
panoProvider: getCustomPanorama,
pov: {heading:322, pitch:12, zoom:2},
addressControl: false,
enableCloseButton: false
}
panorama.setOptions(panoOptions);
google.maps.event.addListener(panorama, 'links_changed',
createCustomLinks);
}