2017年1月31日火曜日

OL3-Cesium v1.23 がリリースされました

2017.1.4 に OL3-Cesium v1.23 がリリースされました。

Release 1.23 based on OL 3.20.0 and Cesium 1.29. See CHANGES.md

● Changes
○ Port to Cesium 1.29.
○ Port to OpenLayers 3.20.0.


2016.11.17 に OL3-Cesium v1.22 がリリースされました。

Release 1.22 based on OL 3.19.1 and Cesium 1.28. See CHANGES.md

● Changes
○ Port to Cesium 1.28.
○ Add OLCesium.setTargetFrameRate to enforce an fps limit for Cesium.
○ Add OLCesium option time to control the current time passed to Cesium.
OLCesium.setTargetFrameRate を追加して、Cesium の fps 制限を適用します。
Cesium に渡される現在の時間を制御するために、OLCesium option time (オプション時間)を追加します。


2016.11.3 に OL3-Cesium v1.21 がリリースされました。

Release 1.21 based on OL 3.19.1 and Cesium 1.27. See CHANGES.md

● Changes
○ Add olcs.OLCesium.trackedFeature property to make Cesium automatically track an OpenLayers point feature. When active, the Cesium camera will follow changes of the feature position. This requires using stacked view.

olcs.OLCesium.trackedFeatureプロパティを追加すると、Cesium はOpenLayers ポイントのフィーチャを自動的に追跡します。 アクティブになると、Cesium カメラはフィーチャ位置の変化に追従します。 これには、積み上げビューを使用する必要があります。

○ Port to OpenLayers 3.19.1.
○ Port to Cesium 1.27.


OL3-Cesium 2 - 準備
2 - 準備
2-1 ダウンロード

a Ol3-Cesium
http://openlayers.org/ol3-cesium/

の「Release」ボタンをクリックします。

b Release・openlayers/ol3-cesium・GitHub
https://github.com/openlayers/ol3-cesium/releases/

の Latest release(ol3-cesium-v1.23.zip)[2017.1.4 現在]をクリックしてダウンロードします。バージョンはそれぞれ、

OpenLayers3 v3.20.0
Cesium v1.29

です。

c ダウンロードしたファイルを展開します。

user@deb8-vmw:~$ cd ダウンロード
user@deb8-vmw:~/ダウンロード$ ls
---
ol3-cesium-v1.23.zip
---
user@deb8-vmw:~/ダウンロード$ unzip ol3-cesium-v1.23.zip
user@deb8-vmw:~/ダウンロード$ ls
---
ol3-cesium-v1.23
ol3-cesium-v1.23.zip
---

展開したフォルダをサイトルートにコピーします。
user@deb8-vmw:~/ダウンロード$ cp -r ol3-cesium-v1.23 ../public_html/ol3cesiumproj/public_html/js/libs/

ol3cesiumproj/public_html/js/libs/ol3-cesium-v1.23/examples/inject_ol3_cesium.js を ol3Cesiumproj/piblic_html にコピーしてファイル名を inject_ol3_cesium123.js に変更し、内容を次のようにします。
(function() {
 var mode = window.location.href.match(/mode=([a-z0-9\-]+)\&?/i);
 var DIST = true;
 var isDev = mode && mode[1] === 'dev';
 //var cs = isDev ? 'CesiumUnminified/Cesium.js' : 'Cesium/Cesium.js';
 //var ol = (DIST && isDev) ? 'ol3cesium-debug.js' : 'ol3cesium.js';
 var cs = isDev ? './js/libs/ol3-cesium-v1.23/CesiumUnminified/Cesium.js' : './js/libs/ol3-cesium-v1.23/Cesium/Cesium.js';
 var ol = (DIST && isDev) ? './js/libs/ol3-cesium-v1.23/ol3cesium-debug.js' : './js/libs/ol3-cesium-v1.23/ol3cesium.js';
 if (!window.LAZY_CESIUM) {
  //document.write('<scr' + 'ipt type="text/javascript" src="../' + cs + '"></scr' + 'ipt>');
  document.write('<scr' + 'ipt type="text/javascript" src="' + cs + '"></scr' + 'ipt>');
 }
 //document.write('<scr' + 'ipt type="text/javascript" src="../' + ol + '"></scr' + 'ipt>');
 document.write('<scr' + 'ipt type="text/javascript" src="' + ol + '"></scr' + 'ipt>');
 var s;
 window.lazyLoadCesium = function() {
  if (!s) {
   s = document.createElement("script");
   s.type = "text/javascript";
   //s.src = '../' + cs;
   s.src = cs;
   console.log('loading Cesium...');
   document.body.appendChild(s);
  }
  return s;
 };
})();

0 件のコメント: