2015年10月14日水曜日

v3.10.1 がリリースされました

v3.10.1 がリリースされました
日本時間で(2015.10.10)に v3.10.1 がリリースされました。

Releases - openlayers/ol3 GitHub
(https://github.com/openlayers/ol3/releases)より

v3.10.1
Summary

This is a patch release that fixes a regression causing text styles with a fill but no stroke to not be rendered.
これは、ストローク無しの塗りつぶしで、レンダリングされないために、回帰を起こすテキストスタイルを修正するパッチリリースです。


v3.10.0 がリリースされました
日本時間で(2015.10.8)に v3.10.1 がリリースされました。

Releases - openlayers/ol3 GitHub
(https://github.com/openlayers/ol3/releases)より

v3.10.0
Summary

The v3.10.0 release includes features and fixes from 66 pull requests since the v3.9.0 release. New features and improvements include:

v3.10.0 リリースは v3.9.0 のリリースから66プルリクエスト(訳注:Git でリクエストを出す機能)からの機能と修正が含まれています。新機能と改良点は次のとおりです。

* Full touch gesture support for the Microsoft Edge browser.
* マイクロソフト Edge ブラウザのフルタッチジェスチャーをサポート。

* Improved API docs - required constructor options are now marked as such.
* 改良されたAPIドキュメント - 必要なコンストラクタのオプションは、現在コンストラクタのオプションとしてマークされています。

* Text styles (vector labels) now work with defaults instead of failing when only a label text is set.
* テキストスタイル(ベクタラベル)は、現在、ラベルテキストが設定されている場合のみ、失敗せずにデフォルト設定で動作します。

* Write support for GML3 features with multiple geometries.
* 複数のジオメトリの GML3 フィーチャの書き込みサポート。

See the complete list below for details. And see the following notes to know how to upgrade from v3.9.0 to v3.10.0.
下の詳細な完全なリストを参照してください。v3.9.0 から v3.10.0 へアップグレードする方法を理解するために次の注意事項を参照してください。

Upgrade notes

ol.layer.Layer changes

The experimental setHue, setContrast, setBrightness, setSaturation, and the corresponding getter methods have been removed. These properties only worked with the WebGL renderer. If you are interested in applying color transforms, look for the postcompose event in the API docs. In addition, the ol.source.Raster source provides a way to create new raster data based on arbitrary transforms run on any number of input sources.

実験的な setHue, setContrast, setBrightness, setSaturation, および、対応するゲッターメソッドが削除されました。これらのプロパティは、WebGL のレンダラでだけ動作しました。あなたが色変換を適用することに興味がある場合は、APIドキュメントでpostcompose event を探します。加えて、ol.source.Raster ソースは、任意の数の入力ソースで実行する任意の変換に基づいた新しいラスタデータを作成するための方法を提供します。


Removal of legacy Internet Explorer support

If you are building an appliction that supports Internet Explorer 8 or older, you'll need to use ES5 shims to make OpenLayers work. As before, support for such old browsers is very basic, and we recommend to not support them.

Internet Explorer 8 以前をサポートするアプリケーションを構築する場合は、OpenLayers を動作させるために ES5 シムを使用する必要があります。以前と同様に、このような古いブラウザのサポートは非常に基本的なものであり、それらをサポートしないことをお勧めします。

(New features and fixes リストはサイトをみてください。)

v3.10.1 の examples を試してみます
OpenLayers 3 のホームページ(http://openlayers.org/)の「LATEST」の文中の「v3.10.1」をクリックします。
開いたページ「Downloads for the v3.10.1 release(http://openlayers.org/download/)」の「v3.10.1.zip」ボタンをクリックしてダウンロードします。
展開したフォルダを Eclipse の ol3proj にコピーします。

ディレクトリは次のようにしました。
ol3proj
|-v3.0.0/
|-v3.1.1/
|-v3.2.0/
|-v3.2.1/
|-v3.3.0/
|-v3.4.0/
|-v3.5.0/
|-v3.6.0/
|-v3.7.0/
|-v3.8.2/
|-v3.9.0/
|-v3.10.1/
|-2xx-ol3ex.html
|-2xx-ol3ex.js
|-2xx-ol3ex-require.js
|-loader.js
|-loader-v3.0.0.js
|-loader-v3.1.1.js
|-loader-v3.2.0.js
|-loader-v3.2.1.js
|-loader-v3.3.0.js
|-loader-v3.4.0.js
|-loader-v3.5.0.js
|-loader-v3.6.0.js
|-loader-v3.7.0.js
|-loader-v3.8.2.js

v.3.9.0 の loader.js の名前を loader-v3.9.0.js に変更し、v3.10.1/examples/loader.js を ol3proj 直下にコピーします。
ol3proj
|-v3.0.0/
|-v3.1.1/
|-v3.2.0/
|-v3.2.1/
|-v3.3.0/
|-v3.4.0/
|-v3.5.0/
|-v3.6.0/
|-v3.7.0/
|-v3.8.2/
|-v3.9.0/
|-v3.10.1/
|-2xx-ol3ex.html
|-2xx-ol3ex.js
|-2xx-ol3ex-require.js
|-loader.js
|-loader-v3.0.0.js
|-loader-v3.1.1.js
|-loader-v3.2.0.js
|-loader-v3.2.1.js
|-loader-v3.3.0.js
|-loader-v3.4.0.js
|-loader-v3.5.0.js
|-loader-v3.6.0.js
|-loader-v3.7.0.js
|-loader-v3.8.2.js
|-loader-v3.9.0.js

loader.js の内容を次のように修正します。

---
  if (!raw) {
    // document.write('<scr' + 'ipt type="text/javascript" src="../build/ol.js"></scr' + 'ipt>');
     // ディレクトリ修正
    document.write('<scr' + 'ipt type="text/javascript" src="v3.10.1/build/ol.js"></scr' + 'ipt>');

  } else {
    window.CLOSURE_NO_DEPS = true; // we've got our own deps file
    // document.write('<scr' + 'ipt type="text/javascript" src="../closure-library/closure/goog/base.js"></scr' + 'ipt>');
    // document.write('<scr' + 'ipt type="text/javascript" src="../build/ol-deps.js"></scr' + 'ipt>');
     // ディレクトリ修正
    document.write('<scr' + 'ipt type="text/javascript" src="v3.10.1/closure-library/closure/goog/base.js"></scr' + 'ipt>');
    document.write('<scr' + 'ipt type="text/javascript" src="v3.10.1/build/ol-deps.js"></scr' + 'ipt>');

    document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '-require.js"></scr' + 'ipt>');
  }
  document.write('<scr' + 'ipt type="text/javascript" src="' + scriptId + '.js"></scr' + 'ipt>');
}());

Hue/saturation example
Brightness/contrast example
は、削除されました。

0 件のコメント: