Difference between revisions of "Widget:Google Street View"

From EWImport
Jump to navigation Jump to search
newimport>DianeDuane
(KQIJCfFZpCKeZpj)
Line 1: Line 1:
<includeonly><!--{counter assign="panoDivID" name="panoDivID"}--><script type="text/javascript" src="http://www.google.com/jsapi?key=<!--{$key|escape:'urlpathinfo'}-->"></script>
+
When you call your popup window, delrace a variable that holds reference to the window. Then using that variable you can control everthing on the new window. For example adding code / adding html text  anything The below link has an example of how the user is controlling what text is displayed in the popup window  check the section  Writing To a Popup Window After It Is Open  of the article
<script type="text/javascript">
 
google.load("maps", "2.x");
 
google.setOnLoadCallback(function()
 
{
 
var myPano = new GStreetviewPanorama(document.getElementById("pano<!--{$panoDivID|escape:'html'}-->"),
 
{
 
latlng: new GLatLng('<!--{$lat|escape:'quotes'}-->', '<!--{$lng|escape:'quotes'}-->'),
 
pov: {
 
yaw:Number('<!--{$yaw|escape:'quotes'|default:0}-->'),
 
pitch:Number('<!--{$pitch|escape:'quotes'|default:0}-->'),
 
zoom:Number('<!--{$zoom|escape:'quotes'|default:0}-->')
 
}
 
});
 
});
 
</script>
 
<div id="pano<!--{$panoDivID|escape:'html'}-->" style="width: <!--{$width|escape:'html'|default:'420'}-->px; height: <!--{$height|escape:'html'|default:350}-->px"></div>
 
</includeonly>
 

Revision as of 03:13, 6 June 2012

When you call your popup window, delrace a variable that holds reference to the window. Then using that variable you can control everthing on the new window. For example adding code / adding html text anything The below link has an example of how the user is controlling what text is displayed in the popup window check the section Writing To a Popup Window After It Is Open of the article