檢視 微件:Google Maps 的原始碼
←
微件:Google Maps
跳至導覽
跳至搜尋
由於下列原因,您沒有權限進行編輯此頁面的動作:
您請求的操作只有這個群組的使用者能使用:
用戶
您沒有權限編輯在命名空間
微件
的頁面。
您可以檢視並複製此頁面的原始碼。
<noinclude>__NOTOC__ This widget allows you to add '''[http://code.google.com/apis/maps/ Google Maps]''' 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_Maps 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><!--{if not isset($static)}--><!--{counter name="mapDivID" assign="mapDivID"}--><script type="text/javascript" src="http://www.google.com/jsapi?key=<!--{$key|escape:'urlpathinfo'}-->"></script> <script type="text/javascript"> google.load("maps", "2.x"); // Call this function when the page has been loaded google.setOnLoadCallback(function() { if (google.maps.BrowserIsCompatible()) { var center = new GLatLng('<!--{$lat|escape:'quotes'}-->', '<!--{$lng|escape:'quotes'}-->'); // Create and Center a Map var map = new google.maps.Map2(document.getElementById("map<!--{$mapDivID|escape:'html'}-->"), {size: new google.maps.Size('<!--{$width|escape:'quotes'|default:'420'}-->', '<!--{$height|escape:'quotes'|default:350}-->')} ); map.setCenter(center, 13); map.setZoom(Number('<!--{$zoom|escape:'quotes'|default:16}-->')); map.enableScrollWheelZoom(); <!--{foreach from=$marker item=m}-->map.addOverlay(new google.maps.Marker(new GLatLng('<!--{$m.lat|escape:'quotes'}-->', '<!--{$m.lng|escape:'quotes'}-->')));<!--{/foreach}--> <!--{if isset($xml)}-->map.addOverlay(new GGeoXml('<!--{$xml|escape:'quotes'}-->'));<!--{/if}--> <!--{if isset($centermarker)}-->map.addOverlay(new google.maps.Marker(center));<!--{/if}--> <!--{if isset($maptypecontrol)}-->map.addControl(new GMapTypeControl());<!--{/if}--> <!--{if isset($largemapcontrol)}-->map.addControl(new GLargeMapControl());<!--{/if}--> <!--{if isset($smallmapcontrol)}-->map.addControl(new GSmallMapControl());<!--{/if}--> <!--{if isset($smallzoomcontrol)}-->map.addControl(new GSmallZoomControl());<!--{/if}--> <!--{if isset($scalecontrol)}-->map.addControl(new GScaleControl());<!--{/if}--> <!--{if isset($overviewmapcontrol)}-->map.addControl(new GOverviewMapControl());<!--{/if}--> <!--{if isset($hierarchicalmaptypecontrol)}-->map.addControl(new GHierarchicalMapTypeControl());<!--{/if}--> <!--{if isset($maptype)}-->map.setMapType(<!--{if $maptype eq 'satellite'}-->G_SATELLITE_MAP<!--{elseif $maptype eq 'hybrid'}-->G_HYBRID_MAP<!--{else}-->G_NORMAL_MAP<!--{/if}-->);<!--{/if}--> } }); </script> <div id="map<!--{$mapDivID|escape:'html'}-->" style="width: <!--{$width|escape:'html'|default:'420'}-->px; height: <!--{$height|escape:'html'|default:350}-->px"><!--{/if}--><img src="http://maps.google.com/staticmap?center=<!--{$lat|escape:'urlpathinfo'}-->,<!--{$lng|escape:'urlpathinfo'}-->&zoom=<!--{$zoom|escape:'urlpathinfo'|default:16}-->&size=<!--{$width|escape:'urlpathinfo'|default:'420'}-->x<!--{$height|escape:'urlpathinfo'|default:350}-->&markers=<!--{if isset($centermarker)}--><!--{$lat|escape:'urlpathinfo'}-->,<!--{$lng|escape:'urlpathinfo'}-->%7C<!--{/if}--><!--{foreach from=$marker item=m}--><!--{$m.lat|escape:'urlpathinfo'}-->,<!--{$m.lng|escape:'urlpathinfo'}-->%7C<!--{/foreach}-->&maptype=<!--{$maptype|escape:'urlpathinfo'|default:'roadmap'}-->&key=<!--{$key|escape:'urlpathinfo'}-->" width="<!--{$width|escape:'html'|default:'420'}-->" height="<!--{$height|escape:'html'|default:350}-->"><!--{if not isset($static)}--></div><!--{/if}--></includeonly>
返回到「
微件:Google Maps
」。
導覽菜單
個人工具
建立賬號
登入
命名空間
微件
討論
香港繁體
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
最新修改
編輯指南
Facebook群組
隨機頁面
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊