On Sep 12, 5:36 pm, Mo <[email protected]> wrote: > Hello, > > I'm pretty sure I'm missing something fairly simple. > > I have a basic Google Street Viewer that I am trying to hide, however > - when I call hide() it does not remove it. It does, however, change > the isHidden attribute to true. > > Please see implementation of street view below: > > var coordinates = new GLatLng(42.345573,-71.098326); > svOptions = { latlng: coordinates }; > SV = new GStreetviewPanorama(document.getElementById("street_view"), > svOptions); > SV.hide(); > > What am I missing? I don't think I should be hiding the div as well > when I call hide() - that would just be redundant.
Where is the map that shows the problem? I suspect the problem is that the streetview panorama is created by an asynchronous call to google's servers. If you try to hid it before it gets created, it doesn't work. If you delay using setTimeout, it might work. -- Larry > > Thanks, -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
