deeptwins-engine-3d 0.1.15 → 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
  }
@@ -17,8 +17,8 @@ import PointPrimitive from "./graphicLayer/PointPrimitive";
17
17
  import PolygonEntity from "./graphicLayer/PolygonEntity";
18
18
  import PolygonPrimitiveInstance from "./graphicLayer/PolygonPrimitiveInstance";
19
19
  import PolylineEntity from "./graphicLayer/PolylineEntity";
20
- import PolylinePrimitiveInstance from "./graphicLayer/PolylinePrimitiveInstance";
21
20
  import PolylineGroundPrimitiveInstance from "./graphicLayer/PolylineGroundPrimitiveInstance";
21
+ import PolylinePrimitiveInstance from "./graphicLayer/PolylinePrimitiveInstance";
22
22
  import PolylineVolumeEntity from "./graphicLayer/PolylineVolumeEntity";
23
23
  import PolylineVolumePrimitiveInstance from "./graphicLayer/PolylineVolumePrimitiveInstance";
24
24
  import WallEntity from "./graphicLayer/WallEntity";
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.15");
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);