Hi Marc,

Thank you for the detailed response.  I gave it a try and noticed that
I don't think the 'pano_changed' event triggers if a streetview is not
available.  It seems that you need to put a timer (for example) around
the code to activate in the event a streetview is not available. A
timer is OK I guess but it would be nice to get an instantaneous
status if a streetview is not available. Maybe I'm doing something
wrong.  Please take a look at it.

The test of the code you mentioned is at http://m.vpike.com/test.htm .

Live examples with the timer are at...
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

Thanks,
Al



On May 25, 6:35 pm, Marc Ridey <mri...@google.com> wrote:
> 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%2b­unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-maps-js-api-v3?hl=en.- Hide quoted 
> >text -
>
> - Show quoted text -

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