On Sep 13, 11:13 am, Mo <[email protected]> wrote:
> What you are saying makes sense except for one thing.
>
> If I do a isHidden() check on the object after I called hide(), the
> hidden attribute is set to True.. but the map is actually still
> visible on the page.

Probably modularized, and an artifact of that.

>
> Would it set hidden to be true even before the map is created? How do
> you debug asynchronous calls?
>
> Thank you!
>
> On Sep 13, 3:14 am, "[email protected]" <[email protected]>
> wrote:
>
>
>
> > 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,- Hide quoted text -
>
> - Show quoted text -

-- 
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.

Reply via email to