getVisible applies to the StreetVIewPanorama view. It makes the whole
StreetVIew panorama with all the controls visible. Even if a valid panorama
is not currently loaded in the view, getVisible() will still return true.
getVisible() is mostly usefull when the map and panorama are used together
to detect that the view is in StreetVIew mode instead of map mode. When the
panorama is used stand-alone, getVisible() always returns true.

To detect that a valid Street View panorama is loaded after you set a
position, monitor pano_changed. When pano id is not null, a valid view is
displayed.
for example:

var panorama =new google.maps.StreetVIewPanorama(div);
google.maps.event.addListener(panorama, 'pano_changed', function() {
  if (panorama.getPano()) {
    // The view is loaded with a valid panorama.
  }
});
panorama.setPosition(new LatLng(...));

On Tue, May 25, 2010 at 12:01 PM, Al <a...@infosports.com> wrote:

> I don't think the xxx.getVisible() is working correctly.  If I
> display
> a place without a street view I would think that it should return
> false.  The best I can tell it always returns true.
>
> A sample good display is at:
> http://m.vpike.com/?p=pgh&submit=Streetview&r=b
> A sample failing display is at:
> http://m.vpike.com/?p=lax&submit=Streetview&r=b
>
>
> Possibly there is a coding error.  Please take a look at it.
>
>
> Thanks,
> Al
>
> --
> 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<google-maps-js-api-v3%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

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