OK.  That worked.  Thank you!

Now, uhm, why does that work, and not the documented syntax?   Am I
interpreting it (the docs) wrong?
http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewPanorama
methods setVisible.  Or are there subtleties here I haven't yet
learned?

Joe

On Jul 1, 2:42 pm, Marc Ridey <[email protected]> wrote:
> try:
>
> panorama.set('visible', true);
>
> Marc
>
>
>
>
>
>
>
> On Fri, Jul 1, 2011 at 1:34 PM, Joe Gawron <[email protected]> wrote:
> > Hi, all
>
> >   I've a puzzle:   I have the following event listener on the map
> > object:
>
> >  var entryPanoId = null ;
>
> >   google.maps.event.addListener(map,'rightclick', function (e) {
> >        var client = new google.maps.StreetViewService();
> >        client.getPanoramaByLocation(e.latLng, 50, function(result,
> > status) {
> >          if (status == google.maps.StreetViewStatus.OK) {
> >            entryPanoId = result.location.pano;
> >            panorama.setPano(entryPanoId) ;
> >            panorama.setVisible = true ;
> >          }
> >        });
> >    });
>
> >  When I check via Firebug, it appears I have all the data I need for
> > a SV panorama, but it doesn't become visible.   The listener picks up,
> > gives me a LatLng for the e.latLng as documented, returns a typical
> > panoId, etc.
>
> >    The complete map is
> >https://aledev.boisestate.edu/joegawron/campusmap/panoExample.html,
> > and is heavily based off of the the custom StreetView code example.
> > Other than making it point to my own panos, this listener is the only
> > real difference in the code.
>
> >   Ideas?
>
> > thanks,
> >  Joe
>
> > --
> > 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
> > [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-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 [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-js-api-v3?hl=en.

Reply via email to