|
|
1行目: |
1行目: |
| <includeonly><div style="margin: 1rem 0;"><iframe src="https://maps.google.co.jp/maps?output=embed&<!--{if isset($latitude) and isset($longitude)}-->q=<!--{$latitude|escape:'html'}-->,<!--{$longitude|escape:'html'}--><!--{else}-->q=<!--{$place|escape:'html'|default:'東京駅'}--><!--{/if}--><!--{if isset($type)}--><!--{if $type eq 'map'}-->&t=m<!--{elseif $type eq 'map'}-->&t=k<!--{/if}--><!--{/if}-->" width="<!--{$width|escape:'html'|default:355}-->" height="<!--{$height|escape:'html'|default:355}-->" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe></div></includeonly><noinclude>
| | ==地図帳== |
| Google Maps で地図を表示できるウィジェットです。
| | 本部キャンパス所在地 |
| | |
| == 使い方 ==
| |
| <pre><nowiki>
| |
| {{#widget:Google Maps | | {{#widget:Google Maps |
| |place=東京駅 | | |place=近畿大学本部キャンパス |
| |latitude=35.681237
| | |width=420 |
| |longitude=139.767113
| | |height=350 |
| |type=map
| |
| |width=355 | |
| |height=355 | |
| }} | | }} |
| </nowiki></pre>
| |
|
| |
| ;place
| |
| :表示する場所を指定。緯度と経度より優先される。省略すると'''東京駅'''になる。
| |
|
| |
| ;latitude
| |
| :表示する場所の緯度を指定。
| |
|
| |
| ;longitude
| |
| :表示する場所の緯度を指定。
| |
|
| |
| ;type
| |
| :地図のタイプを指定。省略すると'''map'''になる。
| |
| :*'''map''' 普通の地図
| |
| :*'''sat''' 航空写真・衛星写真
| |
|
| |
| ;width
| |
| :地図の幅をピクセル単位で指定。省略すると'''355'''になる。
| |
|
| |
|
| ;height
| | [[Category:地図帳|きんきたいかく]] |
| :地図の高さをピクセル単位で指定。省略すると'''355'''になる。 | |
| </noinclude>
| |