「270-ol3ex.js」
var map = new ol.Map({
controls: ol.control.defaults().extend([ /** controls * Controls initially added to the map. * If not specified, ol.control.defaults() is used. * 初期設定で、マップに追加されたコントロール。 * 明示されていなければ、ol.control.defaults() が使用されます。 * (ol3 API) */
/** ol.control.defaults() * デフォルトでは、マップに含まコントロールのセット。 * 特に設定しない限り、これは、以下の各コントロールの * インスタンスを含むコレクションを返します。(ol3 API) * ol.control.Zoom, ol.control.Rotate, ol.control.Attribution */
new ol.control.OverviewMap() /** new ol.control.OverviewMap(opt_options) * Create a new control with a map acting as an * overview map for an other defined map. * もうひとつの定義されたマップの概要マップとして * 動作するマップで新しいコントロールを作成します。 * (ol3 API[説明は Stable Only のチェックを外すと表示]) */
]), layers: [
new ol.layer.Tile({
/** ol.layer.Tile
* For layer sources that provide pre-rendered, tiled
* images in grids that are organized by zoom levels for
* specific resolutions.
* プリレンダリング(事前描画)を提供するレイヤソースのための、
* 特定の解像度でのズームレベルによって編成されているグリッドの
* タイルイメージ。(ol3 API)
*/
source: new ol.source.OSM() /** ol.source.OSM * Layer source for the OpenStreetMap tile server. * OpenStreetMap タイルサーバのレイヤソース。(ol3 API) */
})
],
target: 'map',
view: new ol.View({
center: [500000, 6000000],
zoom: 7
})
});


0 件のコメント:
コメントを投稿