Hi,
Try to create the panorama:

var panorama = new
google.maps.StreetViewPanorama(document.getElementById("pano"),panoramaOpti­
ons);

after the infowindow is ready, inside:

google.maps.event.addListener(infowindow, 'domready', function()

Perhaps the #pano element is not yet ready when you use it.

Itay
Cartolog - Map Experts
http://www.cartolog.com


On Jun 14, 7:38 pm, finco <[email protected]> wrote:
> Getting closer - the following code displays the streetview in the tab
> on all but the first instance.  Any idea why the domready doesn't work
> here and what I can do about it?
>
>     google.maps.event.addListener(marker, "click", function() {
>       if (infowindow) infowindow.close();
>       infowindow = new google.maps.InfoWindow({content: text});
>       infowindow.open(map, marker);
>               var panoramaOptions = {
>               position: marker.position
>               };
>       var panorama = new
> google.maps.StreetViewPanorama(document.getElementById("pano"),panoramaOpti­ons);
>
>       google.maps.event.addListener(infowindow, 'domready', function()
> {
>             map.setStreetView(panorama);
>             $(".tabs").tabs();
>       });
>     });
>
> On Jun 14, 5:22 am, finco <[email protected]> wrote:
>
>
>
> > the link ishttp://www.keypointpartners.com/test/mab/fromxml.html
>
> > I have adjusted the listener and now the tabs appear on the first
> > instance of the infowindow but now the streetviw does not render
> > (first instance or otherwise).
>
> > The listener has been adjusted to:
>
> >     google.maps.event.addListener(marker, "click", function() {
> >       if (infowindow) infowindow.close();
> >       infowindow = new google.maps.InfoWindow({content: text});
> >       infowindow.open(map, marker);
>
> >       google.maps.event.addListener(infowindow, 'domready', function()
> > {
> >             var panoramaOptions = {
> >               position: marker.position
> >               };
> >             var panorama = new
> > google.maps.StreetViewPanorama(document.getElementById("pano"),panoramaOpti­ons);
> >             map.setStreetView(panorama);
> >             //alert(panorama.position);
> >              $(".tabs").tabs();
> >       });
> >     });
>
> > Thanks.
>
> > On Jun 13, 8:28 pm, Ralph Ames <[email protected]> wrote:
>
> > > Have you got a link to your map?
>
> > > Ralph
> > > -www.easypagez.com/maps/map_index.htmlwww.easypagez.com/maps/v3_basicm...
>
> > > --
> > > 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 
> > > athttp://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 [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