***********************************************************************************************
var WinHtml = "some information about the address stored at myPoint";
GEvent.addListener(marker, "click", function()
{
var panWinHtml = "<div id='pano' style='width:500px;height:250px;'></
div>";
this.openInfoWindowTabs([new GInfoWindowTab('Address
Info',WinHtml), new GInfoWindowTab('Street View',panWinHtml)]);
var panorama = new GStreetviewPanorama(document.getElementById
("pano"));
panorama.setLocationAndPOV(myPoint,{yaw:0,
pitch:0});
});
*************************************************************************************************
The problem in the above code is that the street view tab is only
available on second click of the marker.
On first click of the marker, the statement document.getElementById
("pano") always returns null and the tab of street view is blank. I
tried to define the div "pano" globally outside everything but that
didn't help
Any suggestions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---