Thanks - I just tried that and in the first instance the map canvas is displayed along with the address in the upper left corner but no streetview is displayed, just a grey background. After the first time the infowindow is created, it works fine. Any thoughts as to why #pano is not displayed?
On Tue, Jun 15, 2010 at 8:19 AM, Cartolog - Map Experts <[email protected]>wrote: > 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"),panoramaOptions); > > > > 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"),panoramaOptions); > > > 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]<google-maps-js-api-v3%[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]<google-maps-js-api-v3%[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.
