User talk:Higa4/OSM book Japan/Sharing your maps

From OpenStreetMap Wiki
Jump to navigation Jump to search

原文: http://en.flossmanuals.net/openstreetmap/sharing-maps/

Sharing maps

地図の共有

While you're making an effort to contribute some data to OpenSourceMap, you may also want to share the results of your efforts with others. If your data starts to form a interesting map, you may want to share with others. This chapter describes how you can offer your maps to other people or organizations.

OpenStreetMapに何らかのデータを投稿しようと活動していると、その結果を誰かと共有したくなることがあります。あなたのデータで興味深いマップができつつあるなら、他の人と共有したくなるかもしれません。この章ではあなたのマップを他の人々や組織に提供する方法を説明します。

First you must know that the openstreetmap.org website offers permanent, unchanging links to a location with longitude and latitude values, using a neat trick in the URL itself to tell the site what location you want it to display. These links are easy to retrieve on a map. On the openstreetmap.org site, just click Permalink or Shortlink in the lower right area of a map when you're on the View tab.

まず知っておくべきことは、openstreetmap.orgウェブサイトでは、経緯度の値により任意の場所を示す変化しないパーマリンクを提供している、ということです。これは、URLそれ自体を使用した巧妙な手法であり、このURLにより表示したい場所を直接示すことができます。パーマリンクにより簡単に特定箇所の地図が表示できます。openstreetmap.org サイト(閲覧ページ)では、地図の右下にあるパーマリンクあるいは、ショートリンクをクリックすることで使用できます。

Creating Permalinks

パーマリンクの作成

When you click Permalink in a map, this action populates your browser address bar with the permalink URL, which you can then share with others by copying and pasting into emails, online forums, blog comments, and so on. You must be on the View tab to see the Permalink option.

地図上のパーマリンクをクリックすると、ブラウザのURLバーにパーマリンクURLが表示されます。 このURLをコピーし、eメールやオンラインフォーラム、ブログのコメントなどで使用することで他の人と情報の共有が行えます。また、パーマリンクを確認するには、必ず閲覧タブを表示しなければなりません。

Here's the anatomy of a Permalink with all the possible parameters you can use:

こちらがパーマリンクの文法であり、使用できるすべてのパラメータになります。

http://www.openstreetmap.org/index.html?lat=[Latitude]&lon=[Longitude]&zoom=[Zoom Level]&layers=[Layer code]

Location (lat and lon): Latitude and longitude are in lat and lon values, which are represented as mlat and mlon when you want to indicate a marker. You can enter up to six digits after the decimal point for these values.
位置(緯度と経度):緯度と経度はlatとlonの値で示します。もしマーカーで位置を示したい場合は、mlatとmlonを代わりに使用します。また、これらの値には小数点6桁までの数字を使用できます。

Zoom: The zoom level is a value from 1, representing your map on the entire Earth, zoomed all the way out, to 18, which shows it a map within walking distance. To see your map or marker within a country, for example, try a zoom level of 6 or 8.

ズーム: ズームレベルは1(全世界を表示)から使用でき、最大でレベル18(徒歩の距離程度の縮尺)まで拡大できます。国レベルのマップ表示でしたら、ズームレベル6もしくは8を試してみてください。

Layers: Layers are optional and the default is "Mapnik" or layers=M. Layers give you another "skin" on the map. You can use the default, or use O for an OpenStreetMap renderer, or use layers=C for a Cyclemap view.

レイヤー: レイヤーオプションの指定は任意です。デフォルトでは"Mapnik"(Layers=M)が設定されています。Layersは地図の見た目を変える"skin"であり、標準のものだけでなく、layers=Oを指定することでOpenStreetMapのレンダラー、layers=CではCyclemapでの地図表示になります。

Layers are handy when you want to find safe bicycling routes, for example. You can also click the plus symbol to see a list of the layers and choose another layer, which then appears in the Permalink in the browser address bar. The differences mostly show in the colors and fonts displayed on the map.
レイヤーオプションは、例えば、安全な自転車の経路を見つけたい場合等にとても便利です。地図の右上にある+記号をクリックし、基底レイヤーのリストを表示します。他のレイヤーを選択すると、ブラウザのアドレスバー内のパーマリンクに表れます。大きく変わるのはマップに表示されている色やフォントです。

Creating Shortlinks

ショートリンクの作成

As you can see, the Permalink yields a rather long URL, since it contains all the data about the map you're viewing. If you prefer short URLs, you can right-click the Shortlink text in the lower right corner of the map and get the link through your browser's link properties or a Copy Link Location menu. Here is an example of a shortlink to Austin, Texas: http://osm.org/go/Ts0q_IBJ--.

これまで見てきたように、パーマリンクは少し長いURLを生成します。パーマリンクでは、そのURLに表示している地図についてのすべての情報が含まれているからです。もし短いURLを使用したい場合は、地図の右下にあるショートリンクの文字を右クリックし、リンクURLをコピーしてください。こちらがテキサス州のオースティンへのショートリンクの例になります。http://osm.org/go/Ts0q_IBJ--

If you double-click the map to center the where you want to highlight a location, your short link can go to a centered map with that marker icon in the middle if you add '?m' to the end of the URL. For example, this shortlink goes to the Austin Convention Center and has a marker at the corner of 4th and Trinity, http://osm.org/go/Ts0q7wU3?m.

地図をダブルクリックすると、ダブルクリックした位置を中央とした地図が表示されます。また、ショートリンクURLの最後に’?m’を追加することで、マーカーアイコンを表示することができます。例えば、次のショートリンクはオースティンコンベンションセンター周辺を示し、マーカーがTrinityストリートと4thストリートの交差点付近に表示されます。 http://osm.org/go/Ts0q7wU3?m

These shortlinks are great for sending IMs or text messages, or using Twitter or Facebook for encouraging click-throughs to your map.

これらのショートリンクは、インスタントメッセージやSMSの送信時や、ツイッターやフェイスブック等で あなたの地図へ導くツールとして役に立ちます。

Embedding a map on a web page

ウェブページへの地図の埋め込み

If you want to have a map for directing people to the trailhead for a bike ride or the starting point for a pub crawl, for example, you may want to get HTML to embed in a page. People can then refer to your map on their smart phone, or print it from your site. You can easily get the code to embed a map on a web page from OpenStreetMap. Here's how:

地図を使い、他の人にサイクリングや飲み屋巡りの起点を示したい場合、ウェブページに埋め込むためのHTMLコードを取得し、地図をウェブページに埋め込むことで、スマートフォンやそのサイトから地図を印刷し、容易に地図を参照することができます。次の手順で、OpenStreetMapをウェブページに埋め込むためのコードを簡単に取得できます。

  1. On the View tab, find the address or location by zooming and dragging the map so that it looks the way you want it to.
  1. ”閲覧”タブで住所検索や、地図の拡大やドラッグし表示したい場所を探してください。
  2. Go to the Export tab and under the heading "Format to Export", choose "Embeddable HTML".
  2. ”エクスポート”タブに切り替え、”エクスポートするファイル形式”の”埋め込みHTML”を選択してください。
  3. Optionally, add a marker to the map under Options by clicking "Add a marker to the map" and then double-clicking on the map to add the marker and center the map on that point.
  3. オプションでマーカーを地図に追加することができます。”オプション”の項目の中の”マーカーを地図に追加する”をクリックし、追加したい場所をダブルクリックしてマーカーを追加してください。また、ダブルクリックした場所が中央に表示されます。
  4. Under "Output", copy the HTML code.
  4. ”出力”項目の中のHTMLコードをコピーしてください。
  5. Paste the HTML code into the web page in which you want to embed the map.
  5. そのHTMLを地図を埋め込みたいウェブページのコード中に貼り付けてください。