| @@ -39,7 +39,7 @@ class Edit { | |||
| * | |||
| * @private | |||
| */ | |||
| _stopdHook() { | |||
| _stopedHook() { | |||
| this._overlay.positions = Transform.transformCartesianArrayToWGS84Array( | |||
| this._positions | |||
| ) | |||
| @@ -96,7 +96,7 @@ class Edit { | |||
| this._unbindEvent() | |||
| this._viewer.editTool.deactivate() | |||
| this._layer.entities.remove(this._delegate) | |||
| this._stopdHook() | |||
| this._stopedHook() | |||
| } | |||
| /** | |||
| @@ -30,7 +30,7 @@ class EditBillboard extends Edit { | |||
| * | |||
| * @private | |||
| */ | |||
| _stopdHook() { | |||
| _stopedHook() { | |||
| this._overlay.position = Transform.transformCartesianToWGS84(this._position) | |||
| this._overlay.show = true | |||
| this._options.onEditStop && this._options.onEditStop(this._overlay) | |||
| @@ -22,11 +22,6 @@ class EditCircle extends Edit { | |||
| _mountedHook() { | |||
| this._radius = this._overlay.radius | |||
| this._center = Transform.transformWGS84ToCartesian(this._overlay.center) | |||
| // this._delegate = new Cesium.Entity({ | |||
| // polygon: { | |||
| // material: this._overlay.delegate?.polygon?.material | |||
| // } | |||
| // }) | |||
| this._positions = [].concat([ | |||
| this._center, | |||
| this._computeCirclePoints(this._center, this._radius)[0] | |||
| @@ -80,7 +75,7 @@ class EditCircle extends Edit { | |||
| * | |||
| * @private | |||
| */ | |||
| _stopdHook() { | |||
| _stopedHook() { | |||
| this._overlay.center = Transform.transformCartesianToWGS84( | |||
| this._positions[0] | |||
| ) | |||
| @@ -30,7 +30,7 @@ class EditPoint extends Edit { | |||
| * | |||
| * @private | |||
| */ | |||
| _stopdHook() { | |||
| _stopedHook() { | |||
| this._overlay.position = Transform.transformCartesianToWGS84(this._position) | |||
| this._overlay.show = true | |||
| this._options.onEditStop && this._options.onEditStop(this._overlay) | |||