ページ「斉木楠雄のΨ難の登場人物に言われたくない」と「Widget:Google Maps」の間の差分
(ページ間の差分)
ナビゲーションに移動
検索に移動
細 (文字列「{{質問あり}}」を「」に置換) タグ: モバイル編集 モバイルウェブ編集 |
編集の要約なし |
||
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 'sat'}-->&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 | |||
|place=東京駅 | |||
|latitude=35.681237 | |||
|longitude=139.767113 | |||
|type=map | |||
|width=355 | |||
|height=355 | |||
}} | |||
</nowiki></pre> | |||
;place | |||
:表示する場所を指定。緯度と経度より優先される。省略すると'''東京駅'''になる。 | |||
;latitude | |||
:表示する場所の緯度を指定。 | |||
;longitude | |||
:表示する場所の緯度を指定。 | |||
;type | |||
:地図のタイプを指定。省略すると'''map'''になる。 | |||
:*'''map''' 普通の地図 | |||
:*'''sat''' 航空写真・衛星写真 | |||
;width | |||
:地図の幅をピクセル単位で指定。省略すると'''355'''になる。 | |||
;height | |||
:地図の高さをピクセル単位で指定。省略すると'''355'''になる。 | |||
</noinclude> | |||
2021年1月9日 (土) 02:49時点における版
Google Maps で地図を表示できるウィジェットです。
使い方
{{#widget:Google Maps |place=東京駅 |latitude=35.681237 |longitude=139.767113 |type=map |width=355 |height=355 }}
- place
- 表示する場所を指定。緯度と経度より優先される。省略すると東京駅になる。
- latitude
- 表示する場所の緯度を指定。
- longitude
- 表示する場所の緯度を指定。
- type
- 地図のタイプを指定。省略するとmapになる。
- map 普通の地図
- sat 航空写真・衛星写真
- width
- 地図の幅をピクセル単位で指定。省略すると355になる。
- height
- 地図の高さをピクセル単位で指定。省略すると355になる。