2014年10月30日木曜日

2 - ol3ex 24b - Stamen example 2

「stamen.js(224-ol3ex.js)」は、マップを表示するための JavaScript ファイルです。
maps.stamen.com(http://maps.stamen.com)次のように、説明があります。

*****
For over a decade, Stamen has been exploring cartography with our clients and in research. These maps are presented here for your enjoyment and use wherever you display OpenStreetMap data.
十年以上にわたって、Stamen は、クライアントと研究に地図作成を模索してきました。これらのマップは、楽しみのためここに提示し、OpenStreetMap のデータを表示する場所ならどこでも使えます。
*****

タイルの種類は、Toner、Terrain、Watercolor、Burning Map、Mars??、Trees, Cabs & Crime があります。
ライセンスについては次のようにあります。

*****
How to Use These Tiles Elsewhere
他の場所でのこれらのタイルの使い方
Except otherwise noted, each of these map tile sets are © Stamen Design, under a Creative Commons Attribution (CC BY 3.0) license.
特に断りのない場合を除き、これらのマップタイルセットはそれぞれ、クリエイティブコモンズ(3.0 BY CC)ライセンスの下で、© Stamen Design(すべての著作権の主張)です。

We’d love to see these maps used around the web, so we’ve included some brief instructions to help you use them in the mapping system of your choice. These maps are available free of charge. If you use the tiles we host here, please use this attribution:
ウェブ中で使用されるこれらのマップを見てみたいの で、選択したマッピングシステムでそれらを使用する際に役立ついくつかの簡単な指示を用意しました。これらのマップは無料で使用できます。ここに提供する タイルを使用している場合は、この attribution を使用してください:

Attribution:

For Toner(Toner 用): Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under ODbL.

For everything else(その他用): Map tiles by Stamen Design, under CC BY 3.0. Data by OpenStreetMap, under CC BY SA.

If you roll your own tiles from another source you will still need to credit “Map data by OpenStreetMap, under ODbL.” And if you do use these maps elsewhere, please post a tweet to @stamen!
別のソースから独自のタイルをアレンジした場合でも、「Map data by OpenStreetMap, under ODbL.」のクレジットが必要になります。そして、他の場所でこれらのマップを使用する場合は、@stamen にツイートしてください!

Isn't OSM data provided under the ODbL now? Yes, but the data used in our some of our map tiles pre-dates the license change, so it remains CC BY SA until it's refreshed.
OSM のデータは、今、ODbL の下で提供されてませんか?はい、しかしマップタイルの一部で使用されるデータは、ライセンスの変更にさかのぼるので、それがリフレッシュされるまで、SA BY CC のままです。
*****

「224-ol3ex.js」
var map = new ol.Map({
 layers: [
  new ol.layer.Tile({
  /** ol.proj.transform(coordinate, source, destination)
   * Transforms a coordinate from source projection to 
   * destination projection. This returns a new coordinate 
   * (and does not modify the original).
   * ソース投影から変換先投影に座標変換します。これは、新しい座標
   * を返します(オリジナルを変更しません)。(ol3 API)
   */
   source: new ol.source.Stamen({
   /** ol.source.Stamen
    * Layer source for the Stamen tile server.
    * Stamen タイルサーバのレイヤソース。(ol3 API)
    */
    layer: 'watercolor'
   })
  }),
  new ol.layer.Tile({
   source: new ol.source.Stamen({
    layer: 'terrain-labels'
   })
  })
 ],
 renderer: exampleNS.getRendererFromQueryString(),
 // 'example-behavior.js' により URL にある renderer を返します
 target: 'map',
 view: new ol.View({
  center: ol.proj.transform(
  /** ol.proj.transform(coordinate, source, destination)
   * Transforms a coordinate from source projection to 
   * destination projection. This returns a new coordinate 
   * (and does not modify the original).
   * ソース投影から変換先投影に座標変換します。これは、新しい座標
   * を返します(オリジナルを変更しません)。(ol3 API)
   */
   // [-122.416667, 37.783333], 'EPSG:4326', 'EPSG:3857'),
   [139.72, 35.68], 'EPSG:4326', 'EPSG:3857'),//東京周辺に修正
  zoom: 12
 })
});

0 件のコメント: