「微件:Google Street View」:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
無編輯摘要 |
||
第1行: | 第1行: | ||
__NOTOC__ | <noinclude>__NOTOC__ | ||
This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. | This widget allows you to add '''[http://maps.google.com/help/maps/streetview/ Google Street View]''' widget to your wiki page. | ||
Created by [ | 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]. | |||
== Copy to your site == | |||
| | To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article. | ||
</noinclude><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> | |||
= | |||
{ | |||
| | |||
| | |||
{ | |||
| | |||
| | |||
於 2010年10月13日 (三) 19:17 的最新修訂
This widget allows you to add Google Street View widget to your wiki page.
Created by Sergey Chernyshev
Using this widget
For information on how to use this widget, see widget description page on MediaWikiWidgets.org.
Copy to your site
To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as 微件:Google Street View article.