Open main menu

Changes

Widget:Google Street View

1,282 bytes added, 17:13, 13 December 2008
New page: <noinclude>__NOTOC__ This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. Created by [http://www.mediawikiwidget...
<noinclude>__NOTOC__
This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page.

Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]

== Using this widget ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/Google_Street_View widget description page on MediaWikiWidgets.org].

<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>