deeptwins-engine-3d 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -222,6 +222,9 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
222
222
  this.receivedPositions.push(newPosition);
223
223
  this.currentPos = Cesium.Cartesian3.fromDegrees(newPosition.lng, newPosition.lat, newPosition.alt);
224
224
  this.initModel(newPosition);
225
+ if (this.follow) {
226
+ this.updateCameraView();
227
+ }
225
228
  if (this._onPositionUpdate) {
226
229
  this._onPositionUpdate({
227
230
  lng: newPosition.lng,
@@ -768,6 +771,7 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
768
771
  }, {
769
772
  key: "showPolylineLayer",
770
773
  value: function showPolylineLayer(isShow) {
774
+ this.polylineOptions.show = isShow;
771
775
  if (this.polylineLayer) {
772
776
  this.polylineLayer.polyline.show = isShow;
773
777
  }
package/dist/esm/index.js CHANGED
@@ -50,7 +50,7 @@ loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
50
50
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
51
51
  _classCallCheck(this, DeepTwinsEngine3D);
52
52
  });
53
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.16");
53
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.17");
54
54
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
55
55
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
56
56
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);
@@ -128,7 +128,7 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
128
128
  key: "_createHtmlContainer",
129
129
  value: function _createHtmlContainer() {
130
130
  var el = document.createElement('div');
131
- el.id = "".concat(constant.HTML_CONTAINER_ID, "_").concat(this.container.id);
131
+ el.id = constant.HTML_CONTAINER_ID;
132
132
  el.style.cssText = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden;';
133
133
  this.container.appendChild(el);
134
134
  }
@@ -138,7 +138,7 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
138
138
  key: "_createHeatMapContainer",
139
139
  value: function _createHeatMapContainer() {
140
140
  var el = document.createElement('div');
141
- el.id = "".concat(constant.HEATMAP_CONTAINER_ID, "_").concat(this.container.id);
141
+ el.id = constant.HEATMAP_CONTAINER_ID;
142
142
  el.style.cssText = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; opacity: 0;';
143
143
  this.container.appendChild(el);
144
144
  }
@@ -148,7 +148,7 @@ var Map = /*#__PURE__*/function (_Cesium$Viewer) {
148
148
  key: "_createVideoContainer",
149
149
  value: function _createVideoContainer() {
150
150
  var el = document.createElement('div');
151
- el.id = "".concat(constant.VIDEO_CONTAINER_ID, "_").concat(this.container.id);
151
+ el.id = constant.VIDEO_CONTAINER_ID;
152
152
  el.style.cssText = 'position: absolute; left: 0; top: 0; right: 0; bottom: 0; pointer-events: none; overflow: hidden; display: none';
153
153
  this.container.appendChild(el);
154
154
  }