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.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api...@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to