In the following code:
<div id="sview" style="width:100%; height:100%"></div>
<script type="text/javascript">
var initialLocation = new google.maps.LatLng(40.760779,
-111.891047); //Salt Lake City
var sview = new
google.maps.StreetViewPanorama(document.getElementById("sview"), {
position: initialLocation,
addressControl: false,
enableCloseButton: false,
linksControl: false,
navigationControl: false,
visible: false });
sview.setVisible(true); //Panorama is properly displayed
...
sview.setVisible(false); //Panorama disappears properly
...
sview.setVisible(true); //Panorama is...still disappeared!
</script>
*Sorry for no link - I discovered this while debugging with a
javascript shell (
http://www.squarefree.com/shell/). So I don't
really have a complete example code...
*The bug doesn't show if you do all the setVisible calls in a row -
apparently it has to settle down between each call?
*At the end, sview.getVisible() returns true;
*If sview.setPosition is called at the end, it gets properly displayed
again - but ONLY IF the position being set is different.
*Calling sview.setPov has no effect at the end.