deeptwins-engine-3d 0.1.2 → 0.1.4

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.
@@ -160,7 +160,7 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
160
160
  _this._onPositionUpdate({
161
161
  lng: Cesium.Math.toDegrees(cartographic.longitude),
162
162
  lat: Cesium.Math.toDegrees(cartographic.latitude),
163
- height: cartographic.height
163
+ alt: cartographic.height
164
164
  });
165
165
  }
166
166
  if (_this.follow) {
@@ -222,6 +222,13 @@ var ModelRoamRealTime = /*#__PURE__*/function () {
222
222
  if (this.receivedPositions.length === 0) {
223
223
  this.receivedPositions.push(newPosition);
224
224
  this.initModel(newPosition);
225
+ if (this._onPositionUpdate) {
226
+ this._onPositionUpdate({
227
+ lng: newPosition.lng,
228
+ lat: newPosition.lat,
229
+ alt: newPosition.alt
230
+ });
231
+ }
225
232
  return;
226
233
  }
227
234
 
package/dist/esm/index.js CHANGED
@@ -48,7 +48,7 @@ loadCss(Cesium.buildModuleUrl('Widgets/widgets.css'));
48
48
  export var DeepTwinsEngine3D = /*#__PURE__*/_createClass(function DeepTwinsEngine3D() {
49
49
  _classCallCheck(this, DeepTwinsEngine3D);
50
50
  });
51
- _defineProperty(DeepTwinsEngine3D, "Version", "0.1.2");
51
+ _defineProperty(DeepTwinsEngine3D, "Version", "0.1.4");
52
52
  _defineProperty(DeepTwinsEngine3D, "Map", Map);
53
53
  _defineProperty(DeepTwinsEngine3D, "GroundSkyBox", GroundSkyBox);
54
54
  _defineProperty(DeepTwinsEngine3D, "RasterLayer", RasterLayer);