programs:yolp_1
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| programs:yolp_1 [2018/03/30 08:21] – 管理者 | programs:yolp_1 [2018/03/30 22:27] (現在) – [デモ] 管理者 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| + | ====== Yahoo!Map API 地図の表示 ====== | ||
| + | DokuWiki に Yahoo! JavaScriptマップAPI の地図を表示します。 | ||
| + | |||
| + | ===== デモ ===== | ||
| + | < | ||
| + | < | ||
| + | #map img{max-width: | ||
| + | </ | ||
| + | <div id=" | ||
| + | |||
| + | <script type=" | ||
| + | <script type=" | ||
| + | window.onload = function(){ | ||
| + | var ymap = new Y.Map(" | ||
| + | ymap.drawMap(new Y.LatLng(35.66572, | ||
| + | } | ||
| + | </ | ||
| + | <!-- Begin Yahoo! JAPAN Web Services Attribution Snippet --> | ||
| + | <a href=" | ||
| + | <img src=" | ||
| + | <!-- End Yahoo! JAPAN Web Services Attribution Snippet --> | ||
| + | </ | ||
| + | |||
| + | ===== PR ===== | ||
| + | < | ||
| + | <script async src="// | ||
| + | <!-- respon_0 --> | ||
| + | <ins class=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | < | ||
| + | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== サンプル ===== | ||
| + | 【アプリケーションID】の部分を各自で取得したIDに書き換えて、このコードを挿入して下さい。 | ||
| + | <code javascript> | ||
| + | < | ||
| + | <div id=" | ||
| + | |||
| + | <script type=" | ||
| + | <script type=" | ||
| + | window.onload = function(){ | ||
| + | var ymap = new Y.Map(" | ||
| + | ymap.drawMap(new Y.LatLng(35.66572, | ||
| + | } | ||
| + | </ | ||
| + | <!-- Begin Yahoo! JAPAN Web Services Attribution Snippet --> | ||
| + | <a href=" | ||
| + | <img src=" | ||
| + | <!-- End Yahoo! JAPAN Web Services Attribution Snippet --> | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | |||
| + | DokuWikiの標準テンプレートの場合、スタイルシートの影響で上記だけでは表示されません。html構文的に正しくないかもしれませんが下記コードを追加しmapのスタイルシートを標準状態にしてください。 | ||
| + | <code html> | ||
| + | < | ||
| + | < | ||
| + | #map img{max-width: | ||
| + | </ | ||
| + | </ | ||
| + | </ | ||
