Difference between revisions of "Widget:Google Street View"

From EWImport
Jump to navigation Jump to search
newimport>DianeDuane
m (73 revisions imported)
 
(73 intermediate revisions by 55 users not shown)
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>
+
 
<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>
 

Latest revision as of 09:45, 30 January 2021